Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Hydra.AdapterUtils
Description
Additional adapter utilities, above and beyond the generated ones
Documentation
type SymmetricAdapter s t v = Adapter s s t t v v Source #
type TypeAdapter = Type -> Flow AdapterContext (SymmetricAdapter AdapterContext Type Term) Source #
bidirectional :: (CoderDirection -> b -> Flow s b) -> Coder s s b b Source #
chooseAdapter :: (Eq t, Ord t, Show t) => (t -> [Flow so (SymmetricAdapter si t v)]) -> (t -> Bool) -> (t -> String) -> t -> Flow so (SymmetricAdapter si t v) Source #
encodeDecode :: CoderDirection -> Coder s s x x -> x -> Flow s x Source #
idAdapter :: t -> SymmetricAdapter s t v Source #
nameToFilePath :: Bool -> FileExtension -> Name -> FilePath Source #
typeIsSupported :: LanguageConstraints -> Type -> Bool Source #
unidirectionalCoder :: (a -> Flow s b) -> Coder s s a b Source #
module Hydra.Printing