Skip to content

justinwoo/purescript-naporitan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purescript-naporitan

Because sometimes, you want a reflected record of proxies to make life easier.

Usage

proxies = N.reflectRecordProxy ::
  { apple :: Proxy Int
  , banana :: Proxy String
  }

You can also create instances of the proxy creation class:

data MyThing a b c d e f g = MyThing

instance myThingReflectProxy :: N.ReflectProxy (MyThing a b c d e f g) where
  reflectProxy = MyThing

things = N.reflectRecordProxy ::
  { apple :: MyThing Int Int Int Int Int Int Int
  , banana :: MyThing Unit Unit Unit Unit Unit Unit Unit
  }

See test/Main.purs

About

Because sometimes, you want a reflected record of proxies to make life easier.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published