Module
Language.PureScript.Types
- Package
- purescript-language-purescript
- Repository
- JordanMartinez/purescript-language-purescript
#SkolemScope Source
#fromSkolemScope Source
fromSkolemScope :: SkolemScope -> Json
#WildcardData Source
#fromWildcardData Source
fromWildcardData :: WildcardData -> Json
#SourceType Source
type SourceType = Type SourceAnn
#Type Source
data Type a
Constructors
TUnknown a Int
TypeVar a String
TypeLevelString a PSString
TypeLevelInt a Int
TypeWildcard a WildcardData
TypeConstructor a (Qualified (ProperName TypeName))
TypeOp a (Qualified (OpName TypeOpName))
TypeApp a (Type a) (Type a)
KindApp a (Type a) (Type a)
ForAll a TypeVarVisibility String (Maybe (Type a)) (Type a) (Maybe SkolemScope)
ConstrainedType a (Constraint a) (Type a)
Skolem a String (Maybe (Type a)) Int SkolemScope
REmpty a
RCons a Label (Type a) (Type a)
KindedType a (Type a) (Type a)
BinaryNoParensType a (Type a) (Type a) (Type a)
ParensInType a (Type a)
Instances
#toSourceType Source
toSourceType :: (Json -> Either DecodeError SourceAnn) -> Json -> Either DecodeError (Type SourceAnn)
#toTypeUnit Source
toTypeUnit :: Json -> Either DecodeError (Type Unit)
#toType' Source
toType' :: forall a. Either DecodeError a -> (Json -> Either DecodeError a) -> Json -> Either DecodeError (Type a)
#ConstraintData Source
#SourceConstraint Source
type SourceConstraint = Constraint SourceAnn
#Constraint Source
newtype Constraint a
A typeclass constraint
Constructors
Constraint { ann :: a, args :: Array (Type a), class :: Qualified (ProperName ClassName), data :: Maybe ConstraintData, kindArgs :: Array (Type a) }
Instances
Newtype (Constraint a) _
Generic (Constraint a) _
Functor Constraint
Foldable Constraint
Traversable Constraint
(Show a) => Show (Constraint a)
Eq (Constraint a)
Ord (Constraint a)
#fromConstraint Source
fromConstraint :: forall a. (a -> Json) -> Constraint a -> Json
#toSourceConstraint Source
toSourceConstraint :: (Json -> Either DecodeError SourceAnn) -> Json -> Either DecodeError (Constraint SourceAnn)
#toConstraintUnit Source
toConstraintUnit :: (Json -> Either DecodeError Unit) -> Json -> Either DecodeError (Constraint Unit)
#toConstraint' Source
toConstraint' :: forall a. Either DecodeError a -> (Json -> Either DecodeError a) -> Json -> Either DecodeError (Constraint a)
#RowListItem Source
newtype RowListItem a
Constructors
RowListItem { ann :: a, label :: Label, type :: Type a }
Instances
(Eq a) => Eq (RowListItem a)
(Ord a) => Ord (RowListItem a)
Newtype (RowListItem a) _
Generic (RowListItem a) _
(Show a) => Show (RowListItem a)
Functor RowListItem
Foldable RowListItem
Traversable RowListItem
#eqConstraint Source
eqConstraint :: forall a b. Constraint a -> Constraint b -> Boolean
#compareConstraint Source
compareConstraint :: forall a b. Constraint a -> Constraint b -> Ordering
- Modules
- Data.
CodeUnit - Language.
PureScript. AST. Declarations - Language.
PureScript. AST. Operators - Language.
PureScript. AST. SourcePos - Language.
PureScript. Comments - Language.
PureScript. Constants. Lib - Language.
PureScript. Constants. Prim - Language.
PureScript. Docs. RenderedCode. Types - Language.
PureScript. Docs. Types - Language.
PureScript. Environment - Language.
PureScript. Label - Language.
PureScript. Names - Language.
PureScript. PSString - Language.
PureScript. Publish. Registry. Compat - Language.
PureScript. Role - Language.
PureScript. Types - Web.
Bower. PackageMeta