Open preveen-stack opened 1 year ago
There are many modules available in GHCi and they provide a wide range of functionality. Some of the commonly used modules in GHCi are:
Data.List
module: This module provides a set of functions for working with lists, including functions for manipulating, searching, and sorting lists.
Data.Char
module: This module provides functions for working with characters, including functions for converting between upper and lower case, testing for character properties, and converting between characters and their corresponding numeric codes.
Data.Map
module: This module provides an implementation of associative maps, which are a way of mapping keys to values.
Data.Set
module: This module provides an implementation of sets, which are collections of elements with no duplicates.
Control.Monad
module: This module provides a set of functions for working with monads, which are a way of modeling computations with side effects.
System.IO
module: This module provides functions for working with files and input/output operations.
Text.Printf
module: This module provides a printf-style formatting function for generating formatted strings.
Debug.Trace
module: This module provides a tracing function for debugging purposes.
These are just a few examples of the many modules available in GHCi. You can use the :browse
command followed by the name of a module to see a list of all of the functions and types defined in that module, and use the import
statement to import the module into your program.