Hoogle Search
Within LTS Haskell 24.70 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
chosenCharacterSet :: Options -> Maybe CharacterSetdhall Dhall.Main No documentation available.
-
dhall Dhall.Map Return the Data.Set.Set of the keys
>>> keysSet (fromList [("B",1),("A",2)]) fromList ["A","B"] hashSetFromDistinctList :: (Hashable a, Ord a, Show a) => Decoder a -> Decoder (HashSet a)dhall Dhall.Marshal.Decode Decode a HashSet from a List with distinct elements.
>>> input (hashSetFromDistinctList natural) "[1, 2, 3]" fromList [1,2,3]
An error is thrown if the list contains duplicates.>>> input (hashSetFromDistinctList natural) "[1, 1, 3]" *** Exception: Error: Failed extraction The expression type-checked successfully but the transformation to the target type failed with the following error: One duplicate element in the list: 1
>>> input (hashSetFromDistinctList natural) "[1, 1, 3, 3]" *** Exception: Error: Failed extraction The expression type-checked successfully but the transformation to the target type failed with the following error: 2 duplicates were found in the list, including 1
hashSetIgnoringDuplicates :: (Hashable a, Ord a) => Decoder a -> Decoder (HashSet a)dhall Dhall.Marshal.Decode >>> input (hashSetIgnoringDuplicates natural) "[1, 2, 3]" fromList [1,2,3]
Duplicate elements are ignored.>>> input (hashSetIgnoringDuplicates natural) "[1, 1, 3]" fromList [1,3]
characterSet :: Lens' Options CharacterSetdhall Dhall.Package Access the character set used to render the package content.
getOffset :: MonadParsec e s m => m Intdhall Dhall.Parser.Expression Get the current source offset (in tokens)
timeNumOffset :: Parser (Expr s a)dhall Dhall.Parser.Expression Parse a numeric TimeZone This corresponds to the time-numoffset rule from the official grammar
timeOffset :: Parser (Expr s a)dhall Dhall.Parser.Expression Parse a numeric TimeZone or a Z This corresponds to the time-offset rule from the official grammar
-
dhall Dhall.Pretty This type determines whether to render code as ASCII or Unicode
defaultCharacterSet :: CharacterSetdhall Dhall.Pretty The character set used by default in functions throughout the Dhall code base.