djinn-ghc-0.0.2.1: Generate Haskell code from a type. Bridge from Djinn to GHC API.

Safe HaskellNone

Djinn.GHC

Synopsis

Documentation

type Environment = [(Name, Type)]Source

Bindings which are in scope at a specific point.

newtype MaxSolutions Source

Obtain a maximum number of solutions.

Constructors

Max Int 

djinn :: GhcMonad m => Bool -> Maybe ModuleInfo -> Environment -> Type -> MaxSolutions -> Int -> m [String]Source

Obtain the list of expressions which could fill something with the given type. The first flag specifies whether to return one or more solutions to the problem.