Module
Typelevel.Arithmetic.ToInt
- Package
- purescript-typelevel-arithmetic
- Repository
- sigma-andex/purescript-typelevel-arithmetic
#ToIntSingle Source
class ToIntSingle :: Symbol -> Constraintclass ToIntSingle (sym :: Symbol) where
Class for internal use only. See ToInt instead.
Members
toIntSingle :: Proxy sym -> Int
Instances
ToIntSingle "0"ToIntSingle "1"ToIntSingle "2"ToIntSingle "3"ToIntSingle "4"ToIntSingle "5"ToIntSingle "6"ToIntSingle "7"ToIntSingle "8"ToIntSingle "9"
#ToIntHelper Source
class ToIntHelper :: Symbol -> Constraintclass ToIntHelper (sym :: Symbol) where
Members
toIntHelper :: Proxy sym -> Tuple Int Int
Instances
ToIntHelper ""(Cons head tail sym, ToIntHelper tail, ToIntSingle head) => ToIntHelper sym
Converts a
Symbolrepresenting an Int to an Int