Hoogle Search

Within LTS Haskell 24.28 (ghc-9.10.3)

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

  1. WFSList :: [WellFormedSExpr atom] -> WellFormedSExpr atom

    s-cargot Data.SCargot.Repr

    No documentation available.

  2. asList :: ([SExpr t] -> Either String a) -> SExpr t -> Either String a

    s-cargot Data.SCargot.Repr.Basic

    Parse an arbitrary-length list using the provided function.

    >>> let go xs = concat <$> mapM fromAtom xs
    
    >>> asList go (A "el" ::: A "eph" ::: A "ant" ::: Nil)
    Right "elephant"
    
    >>> asList go (A "el" ::: A "eph" ::: A "ant")
    Left "asList: expected list; found dotted list of length 3"
    

  3. fromList :: (SExpr t -> Either String a) -> SExpr t -> Either String [a]

    s-cargot Data.SCargot.Repr.Basic

    Utility function for parsing a list of things.

  4. RSList :: [RichSExpr atom] -> RichSExpr atom

    s-cargot Data.SCargot.Repr.Rich

    No documentation available.

  5. asList :: ([RichSExpr t] -> Either String a) -> RichSExpr t -> Either String a

    s-cargot Data.SCargot.Repr.Rich

    Parse an arbitrary-length list using the provided function.

    >>> let go xs = concat <$> mapM fromAtom xs
    
    >>> asList go (L [A "el", A "eph", A "ant"])
    Right "elephant"
    
    >>> asList go (DL [A "el", A "eph"] "ant")
    Left "asList: expected list; found dotted list"
    

  6. fromList :: (RichSExpr t -> Either String a) -> RichSExpr t -> Either String [a]

    s-cargot Data.SCargot.Repr.Rich

    Utility function for parsing a proper list of things.

    >>> fromList fromAtom (L [A "this", A "that", A "the-other"])
    Right ["this","that","the-other"]
    
    >>> fromList fromAtom (DL [A "this", A "that"] "the-other"])
    Left "asList: expected proper list; found dotted list"
    

  7. WFSList :: [WellFormedSExpr atom] -> WellFormedSExpr atom

    s-cargot Data.SCargot.Repr.WellFormed

    No documentation available.

  8. asList :: ([WellFormedSExpr t] -> Either String a) -> WellFormedSExpr t -> Either String a

    s-cargot Data.SCargot.Repr.WellFormed

    Parse an arbitrary-length list using the provided function.

    >>> let go xs = concat <$> mapM fromAtom xs
    
    >>> asList go (L [A "el", A "eph", A "ant"])
    Right "elephant"
    
    >>> asList go (A "pachyderm")
    Left "asList: expected list; found atom"
    

  9. fromList :: (WellFormedSExpr t -> Either String a) -> WellFormedSExpr t -> Either String [a]

    s-cargot Data.SCargot.Repr.WellFormed

    Utility function for parsing a list of things.

    >>> fromList fromAtom (L [A "this", A "that", A "the-other"])
    Right ["this","that","the-other"]
    
    >>> fromList fromAtom (A "pachyderm")
    Left "asList: expected proper list; found dotted list"
    

  10. KList :: Kind -> Kind

    sbv Data.SBV

    No documentation available.

Page 170 of many | Previous | Next