13. HC13 ‐ Haskell Chapter 13 Practical Tasks: Modules - wimsio/universities GitHub Wiki

  1. HC13T1
    Create a program that lists all files in the current directory using the System.Directory module.

  2. HC13T2
    Write a function that filters files in the current directory based on a substring in the filename using Data.List.isInfixOf.

  3. HC13T3
    Implement a function that sorts and returns filtered file names from the current directory using both Data.List.sort and Data.List.filter.

  4. HC13T4
    Write a Haskell module named SumNonEmpty that defines a function sumNonEmpty, which returns an error if called on an empty list.

  5. HC13T5
    Refactor the sumNonEmpty function to restrict the visibility of helper functions like error messages in the module export list.

  6. HC13T6
    Create a function that uses Data.Map to convert a list of filtered file names into a key-value map.

  7. HC13T7
    Write a program that imports a function from your custom SumNonEmpty module and calculates the sum of a list of numbers.

  8. HC13T8
    Demonstrate how to handle name conflicts between two imported modules, using qualified imports.

  9. HC13T9
    Create a function that demonstrates renaming a module namespace and uses functions from both renamed modules.

  10. HC13T10
    Create a main function that imports and calls functions from at least two modules (System.Directory, Data.List) to perform a search and display sorted file results.

Finished. Congratulations! Get your progress token here