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.
WFSList :: [WellFormedSExpr atom] -> WellFormedSExpr atoms-cargot Data.SCargot.Repr No documentation available.
asList :: ([SExpr t] -> Either String a) -> SExpr t -> Either String as-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"
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.
RSList :: [RichSExpr atom] -> RichSExpr atoms-cargot Data.SCargot.Repr.Rich No documentation available.
asList :: ([RichSExpr t] -> Either String a) -> RichSExpr t -> Either String as-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"
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"
WFSList :: [WellFormedSExpr atom] -> WellFormedSExpr atoms-cargot Data.SCargot.Repr.WellFormed No documentation available.
asList :: ([WellFormedSExpr t] -> Either String a) -> WellFormedSExpr t -> Either String as-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"
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"
-
sbv Data.SBV No documentation available.