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.

  1. chosenCharacterSet :: Options -> Maybe CharacterSet

    dhall Dhall.Main

    No documentation available.

  2. keysSet :: Map k v -> Set k

    dhall Dhall.Map

    Return the Data.Set.Set of the keys

    >>> keysSet (fromList [("B",1),("A",2)])
    fromList ["A","B"]
    

  3. 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
    

  4. hashSetIgnoringDuplicates :: (Hashable a, Ord a) => Decoder a -> Decoder (HashSet a)

    dhall Dhall.Marshal.Decode

    Decode a HashSet from a List.

    >>> input (hashSetIgnoringDuplicates natural) "[1, 2, 3]"
    fromList [1,2,3]
    
    Duplicate elements are ignored.
    >>> input (hashSetIgnoringDuplicates natural) "[1, 1, 3]"
    fromList [1,3]
    

  5. characterSet :: Lens' Options CharacterSet

    dhall Dhall.Package

    Access the character set used to render the package content.

  6. getOffset :: MonadParsec e s m => m Int

    dhall Dhall.Parser.Expression

    Get the current source offset (in tokens)

  7. timeNumOffset :: Parser (Expr s a)

    dhall Dhall.Parser.Expression

    Parse a numeric TimeZone This corresponds to the time-numoffset rule from the official grammar

  8. 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

  9. data CharacterSet

    dhall Dhall.Pretty

    This type determines whether to render code as ASCII or Unicode

  10. defaultCharacterSet :: CharacterSet

    dhall Dhall.Pretty

    The character set used by default in functions throughout the Dhall code base.

Page 1511 of many | Previous | Next