WebBits.Common
Description
Defines commonly used datatypes and functions.
- class PrettyPrintable a where
- isPrefixOf :: Eq a => [a] -> [a] -> Bool
- data SourcePos
- sourceName :: SourcePos -> SourceName
Documentation
class PrettyPrintable a whereSource
PrettyPrintable makes writing pretty-printing code for large, recursive
data structures shorter.
Instances
isPrefixOf :: Eq a => [a] -> [a] -> Bool
The isPrefixOf function takes two lists and returns True
iff the first list is a prefix of the second.
data SourcePos
Instances
| Eq SourcePos | |
| Data SourcePos | We make This definition is incomplete. |
| Ord SourcePos | |
| Show SourcePos | |
| Typeable SourcePos | These definitions allow us to use data structures containing We make |
sourceName :: SourcePos -> SourceName