Closed blmage closed 5 years ago
Thanks for this great extension! I can already see a lot of places where I will most likely - and happily - use it :)
Here is an example of where I found LiftM2 useful:
LiftM2
import Fcf import GHC.TypeNats (type (<=?), Div, Nat) data NatSize :: Nat -> Exp Nat type instance Eval (NatSize n) = Eval (UnBool (LiftM2 (+) (Pure 1) (NatSize (Div n 10))) (Pure 1) (n <=? 9))
Thanks! That looks good! I'll make a release next week.
Thanks for this great extension! I can already see a lot of places where I will most likely - and happily - use it :)
Here is an example of where I found
LiftM2
useful: