Safe Haskell | None |
---|---|
Language | Haskell2010 |
Chez.Grater.Readable.Types
Description
Types and instances for instances for humans to read.
Documentation
data ReadableFraction Source #
Constructors
ReadableFraction | |
Fields |
Instances
data ReadableQuantity Source #
Constructors
ReadableQuantity | |
Instances
newtype ReadableUnit Source #
Constructors
ReadableUnit | |
Fields
|
Instances
Eq ReadableUnit Source # | |
Defined in Chez.Grater.Readable.Types | |
Ord ReadableUnit Source # | |
Defined in Chez.Grater.Readable.Types Methods compare :: ReadableUnit -> ReadableUnit -> Ordering # (<) :: ReadableUnit -> ReadableUnit -> Bool # (<=) :: ReadableUnit -> ReadableUnit -> Bool # (>) :: ReadableUnit -> ReadableUnit -> Bool # (>=) :: ReadableUnit -> ReadableUnit -> Bool # max :: ReadableUnit -> ReadableUnit -> ReadableUnit # min :: ReadableUnit -> ReadableUnit -> ReadableUnit # | |
Show ReadableUnit Source # | |
Defined in Chez.Grater.Readable.Types Methods showsPrec :: Int -> ReadableUnit -> ShowS # show :: ReadableUnit -> String # showList :: [ReadableUnit] -> ShowS # | |
ToJSON ReadableUnit Source # | |
Defined in Chez.Grater.Readable.Types Methods toJSON :: ReadableUnit -> Value # toEncoding :: ReadableUnit -> Encoding # toJSONList :: [ReadableUnit] -> Value # toEncodingList :: [ReadableUnit] -> Encoding # | |
FromJSON ReadableUnit Source # | |
Defined in Chez.Grater.Readable.Types |
mkReadableUnit :: Unit -> Maybe ReadableUnit Source #