Skip to content

sigma-andex/purescript-typelevel-arithmetic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purescript-typelevel-arithmetic 🧮

DEPRECATED: Purescript v0.15.0 now provides typelevel integers with compiler solved typeclasses, so there is no need anymore to use symbol-based arithmetic.

Arithmetic at the typelevel using symbols.

add ∷ ∀ augend addend sum carry result. Add augend addend carry sum ⇒ Cons carry sum result ⇒ Proxy augend → Proxy addend → Proxy result add _ _ = Proxy result ∷ Proxy "0579" result = add (term ∷ _ "123") (term ∷ _ "456")

About

Fast typelevel arithmetic 🧮 using symbols

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published