Safe Haskell | None |
---|---|
Language | Haskell2010 |
General Purpose Newtype Wrappers
A zoo of newtype wrappers.
In everyday Haskell programming newtype wrappers occur again and again, to convey some extra meaning for the maintainer of the code, and to prevent mixing up parameters to functions with the same type.
For example:
applyConfiguration :: MyConfig -> MyConfig -> IO MyConfig
What the user actually wanted to express was:
applyConfiguration ::Wanted
MyConfig ->Current
MyConfig -> IO (Active
MyConfig)
Documentation
module NewtypeZoo.Active
module NewtypeZoo.Allocated
module NewtypeZoo.Available
module NewtypeZoo.Broken
module NewtypeZoo.Cached
module NewtypeZoo.Complete
module NewtypeZoo.Completed
module NewtypeZoo.Consistent
module NewtypeZoo.Current
module NewtypeZoo.Disabled
module NewtypeZoo.Enabled
module NewtypeZoo.Established
module NewtypeZoo.Existing
module NewtypeZoo.Failed
module NewtypeZoo.Inconsistent
module NewtypeZoo.Invalid
module NewtypeZoo.Marked
module NewtypeZoo.Missing
module NewtypeZoo.Multiple
module NewtypeZoo.Needed
module NewtypeZoo.New
module NewtypeZoo.Next
module NewtypeZoo.Obsolete
module NewtypeZoo.Offered
module NewtypeZoo.Old
module NewtypeZoo.Partial
module NewtypeZoo.Pending
module NewtypeZoo.Previous
module NewtypeZoo.Proposed
module NewtypeZoo.Rejected
module NewtypeZoo.Remaining
module NewtypeZoo.Replied
module NewtypeZoo.Requested
module NewtypeZoo.Required
module NewtypeZoo.Responded
module NewtypeZoo.Single
module NewtypeZoo.Unchecked
module NewtypeZoo.Unwanted
module NewtypeZoo.Updated
module NewtypeZoo.Valid
module NewtypeZoo.Wanted