Module

Data.Variant.Internal

#FProxy

data FProxy (a :: Type -> Type)

Proxy for a Functor.

Constructors

#VariantRep

newtype VariantRep a

Constructors

#VariantCase

#VariantFCase

#VariantTags

class VariantTags (rl :: RowList)  where

Members

Instances

#Contractable

class Contractable gt lt  where

Members

Instances

#VariantMatchCases

class VariantMatchCases (rl :: RowList) (vo :: # Type) b | rl -> vo b

Instances

#VariantFMatchCases

class VariantFMatchCases (rl :: RowList) (vo :: # Type) a b | rl -> vo a b

Instances

#lookup

lookup :: forall a. String -> String -> List String -> List a -> a

#lookupTag

lookupTag :: String -> List String -> Boolean

A specialized lookup function which bails early. Foldable's elem is always worst-case.

#lookupLast

lookupLast :: forall a b. String -> (a -> b) -> List String -> List a -> { type :: String, value :: b }

#lookupFirst

lookupFirst :: forall a b. String -> (a -> b) -> List String -> List a -> { type :: String, value :: b }

#lookupPred

#lookupSucc

#lookupCardinality

#lookupFromEnum

#lookupToEnum

#BoundedDict

type BoundedDict a = { top :: a, bottom :: a }

#BoundedEnumDict

type BoundedEnumDict a = { pred :: a -> Maybe a, succ :: a -> Maybe a, fromEnum :: a -> Int, toEnum :: Int -> Maybe a, cardinality :: Int }

#impossible

impossible :: forall a. String -> a

Re-exports from Record.Unsafe

#unsafeHas

unsafeHas :: forall r1. String -> {  | r1 } -> Boolean

Checks if a record has a key, using a string for the key.

#unsafeGet

unsafeGet :: forall r a. String -> {  | r } -> a

Unsafely gets a value from a record, using a string for the key.

If the key does not exist this will cause a runtime error elsewhere.

Re-exports from Type.Row

#RProxy

data RProxy (row :: # Type)

Constructors

#RLProxy

data RLProxy (rowList :: RowList)

Constructors

Modules