| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Howl.Builtins.Types
Description
Small helper types shared by builtin definitions.
Synopsis
- newtype ListOrSolo a = MkListOrSolo (Seq a)
- newtype AList a = MkList {}
Documentation
newtype ListOrSolo a #
A datatype that matches a single expression e or a list of
expressions {e1,...,en}, such that the expressions can all be
mapped to the type a.
Constructors
| MkListOrSolo (Seq a) |
Instances
| FromExpr a => FromExpr (ListOrSolo a) # | |
Defined in Howl.Builtins.Types Methods fromExpr :: Expr -> Maybe (ListOrSolo a) # | |
A list-valued expression whose elements all decode to a.