Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. DhallDouble :: Double -> DhallDouble

    dhall Dhall.Core

    No documentation available.

  2. NaturalLit :: Natural -> Expr s a

    dhall Dhall.Core

    NaturalLit n                             ~  n
    

  3. getDhallDouble :: DhallDouble -> Double

    dhall Dhall.Core

    No documentation available.

  4. judgmentallyEqual :: Eq a => Expr s a -> Expr t a -> Bool

    dhall Dhall.Core

    Returns True if two expressions are α-equivalent and β-equivalent and False otherwise judgmentallyEqual can fail with an error if you compare ill-typed expressions

  5. shallowDenote :: Expr s a -> Expr s a

    dhall Dhall.Core

    Remove any outermost Note constructors This is typically used when you want to get the outermost non-Note constructor without removing internal Note constructors

  6. newtype ReferentiallyOpaque

    dhall Dhall.Import

    Dhall tries to ensure that all expressions hosted on network endpoints are weakly referentially transparent, meaning roughly that any two clients will compile the exact same result given the same URL. To be precise, a strong interpretaton of referential transparency means that if you compiled a URL you could replace the expression hosted at that URL with the compiled result. Let's call this "static linking". Dhall (very intentionally) does not satisfy this stronger interpretation of referential transparency since "statically linking" an expression (i.e. permanently resolving all imports) means that the expression will no longer update if its dependencies change. In general, either interpretation of referential transparency is not enforceable in a networked context since one can easily violate referential transparency with a custom DNS, but Dhall can still try to guard against common unintentional violations. To do this, Dhall enforces that a non-local import may not reference a local import. Local imports are defined as:

    • A file
    • A URL with a host of localhost or 127.0.0.1
    All other imports are defined to be non-local

  7. ReferentiallyOpaque :: Import -> ReferentiallyOpaque

    dhall Dhall.Import

    No documentation available.

  8. newtype DhallErrors e

    dhall Dhall.Marshal.Decode

    A newtype suitable for collecting one or more errors.

  9. DhallErrors :: NonEmpty e -> DhallErrors e

    dhall Dhall.Marshal.Decode

    No documentation available.

  10. class FromDhall a

    dhall Dhall.Marshal.Decode

    Any value that implements FromDhall can be automatically decoded based on the inferred return type of input.

    >>> input auto "[1, 2, 3]" :: IO (Vector Natural)
    [1,2,3]
    
    >>> input auto "toMap { a = False, b = True }" :: IO (Map Text Bool)
    fromList [("a",False),("b",True)]
    
    This class auto-generates a default implementation for types that implement Generic. This does not auto-generate an instance for recursive types. The default instance can be tweaked using genericAutoWith/genericAutoWithInputNormalizer and custom InterpretOptions, or using DerivingVia and Codec from Dhall.Deriving.

Page 673 of many | Previous | Next