Skip to content

rightfold/purescript-quotient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purescript-quotient

Quotient type approximation in PureScript.

This library provides a newtype around any other type, but to get a value out you first have to apply a normalization function (such as mod 256, or abs, or toUpperCase). This allows zero-overhead wrapping of foreign data that is potentially not normalized, at the cost of unwrapping being more expensive. That's all the library really does.