Exports Type internals. (#86)

Adds trivial comments on extend, extract functions.

Fixes https://github.com/Gabriel439/Haskell-Dhall-Library/issues/26.
This commit is contained in:
bosu 2017-07-12 00:04:44 +03:00 committed by Gabriel Gonzalez
parent 8c340c12dd
commit 0221dd4432

View File

@ -19,7 +19,7 @@ module Dhall
, detailed
-- * Types
, Type
, Type(..)
, Interpret(..)
, InvalidType(..)
, auto
@ -299,7 +299,9 @@ detailed =
-}
data Type a = Type
{ extract :: Expr X X -> Maybe a
-- ^ Extracts Haskell value from the Dhall expression
, expected :: Expr Src X
-- ^ Dhall type of the Haskell value
}
deriving (Functor)