@@ -41,7 +41,7 @@ module Dhall
4141 , InputSettings
4242 , defaultEvaluateSettings
4343 , EvaluateSettings
44- , HasEvaluateSettings
44+ , HasEvaluateSettings ( .. )
4545 , detailed
4646
4747 -- * Decoders
@@ -110,7 +110,7 @@ module Dhall
110110 , union
111111 , constructor
112112 , GenericFromDhall (.. )
113-
113+ , GenericFromDhallUnion ( .. )
114114 , ToDhall (.. )
115115 , Inject
116116 , inject
@@ -133,6 +133,7 @@ module Dhall
133133 , rawInput
134134 , (>$<)
135135 , (>*<)
136+ , Result
136137
137138 -- * Re-exports
138139 , Natural
@@ -259,7 +260,7 @@ typeError expected actual = Failure $ case expected of
259260 Failure e -> fmap ExpectedTypeError e
260261 Success expected' -> DhallErrors $ pure $ TypeMismatch $ InvalidDecoder expected' actual
261262
262- -- | Turn a `Text` message into an extraction failure
263+ -- | Turn a `Data.Text. Text` message into an extraction failure
263264extractError :: Text -> Extractor s a b
264265extractError = Failure . DhallErrors . pure . ExtractError
265266
@@ -630,7 +631,7 @@ inputHelper annotate settings txt = do
630631-- The intended use case is to allow easy extraction of Dhall values for
631632-- making the function `Core.normalizeWith` easier to use.
632633--
633- -- For other use cases, use `input` from ` Dhall` module. It will give you
634+ -- For other use cases, use `input` from " Dhall" module. It will give you
634635-- a much better user experience.
635636rawInput
636637 :: Alternative f
@@ -785,7 +786,7 @@ data Decoder a = Decoder
785786 }
786787 deriving (Functor )
787788
788- {-| Decode a `Bool`
789+ {-| Decode a `Prelude. Bool`
789790
790791>>> input bool "True"
791792True
@@ -798,7 +799,7 @@ bool = Decoder {..}
798799
799800 expected = pure Bool
800801
801- {-| Decode a `Natural`
802+ {-| Decode a `Prelude. Natural`
802803
803804>>> input natural "42"
80480542
@@ -811,7 +812,7 @@ natural = Decoder {..}
811812
812813 expected = pure Natural
813814
814- {-| Decode an `Integer`
815+ {-| Decode an `Prelude. Integer`
815816
816817>>> input integer "+42"
81781842
939940scientific :: Decoder Scientific
940941scientific = fmap Data.Scientific. fromFloatDigits double
941942
942- {-| Decode a `Double`
943+ {-| Decode a `Prelude. Double`
943944
944945>>> input double "42.0"
94594642.0
@@ -952,15 +953,15 @@ double = Decoder {..}
952953
953954 expected = pure Double
954955
955- {-| Decode lazy `Text`
956+ {-| Decode lazy `Data.Text. Text`
956957
957958>>> input lazyText "\"Test\""
958959"Test"
959960-}
960961lazyText :: Decoder Data.Text.Lazy. Text
961962lazyText = fmap Data.Text.Lazy. fromStrict strictText
962963
963- {-| Decode strict `Text`
964+ {-| Decode strict `Data.Text. Text`
964965
965966>>> input strictText "\"Test\""
966967"Test"
@@ -1054,7 +1055,7 @@ functionWith inputNormalizer (Encoder {..}) (Decoder extractIn expectedIn) =
10541055
10551056 expectedOut = Pi " _" declared <$> expectedIn
10561057
1057- {-| Decode a `Set` from a `List`
1058+ {-| Decode a `Data.Set. Set` from a `List`
10581059
10591060>>> input (setIgnoringDuplicates natural) "[1, 2, 3]"
10601061fromList [1,2,3]
@@ -1068,7 +1069,7 @@ fromList [1,3]
10681069setIgnoringDuplicates :: (Ord a ) => Decoder a -> Decoder (Data.Set. Set a )
10691070setIgnoringDuplicates = fmap Data.Set. fromList . list
10701071
1071- {-| Decode a `HashSet` from a `List`
1072+ {-| Decode a `Data.HashSet. HashSet` from a `List`
10721073
10731074>>> input (hashSetIgnoringDuplicates natural) "[1, 2, 3]"
10741075fromList [1,2,3]
@@ -1084,7 +1085,7 @@ hashSetIgnoringDuplicates :: (Hashable a, Ord a)
10841085 -> Decoder (Data.HashSet. HashSet a )
10851086hashSetIgnoringDuplicates = fmap Data.HashSet. fromList . list
10861087
1087- {-| Decode a `Set` from a `List` with distinct elements
1088+ {-| Decode a `Data.Set. Set` from a `List` with distinct elements
10881089
10891090>>> input (setFromDistinctList natural) "[1, 2, 3]"
10901091fromList [1,2,3]
@@ -1113,7 +1114,7 @@ An error is thrown if the list contains duplicates.
11131114setFromDistinctList :: (Ord a , Show a ) => Decoder a -> Decoder (Data.Set. Set a )
11141115setFromDistinctList = setHelper Data.Set. size Data.Set. fromList
11151116
1116- {-| Decode a `HashSet` from a `List` with distinct elements
1117+ {-| Decode a `Data.HashSet. HashSet` from a `List` with distinct elements
11171118
11181119>>> input (hashSetFromDistinctList natural) "[1, 2, 3]"
11191120fromList [1,2,3]
@@ -1683,6 +1684,9 @@ extractUnionConstructor (Field (Union kts) (Core.fieldSelectionLabel -> fld)) =
16831684extractUnionConstructor _ =
16841685 empty
16851686
1687+ {-| This is the underlying class that powers the `FromDhall` class's support
1688+ for automatically deriving a generic implementation for a union type
1689+ -}
16861690class GenericFromDhallUnion t f where
16871691 genericUnionAutoWithNormalizer :: Proxy t -> InputNormalizer -> InterpretOptions -> UnionDecoder (f a )
16881692
0 commit comments