summaryrefslogtreecommitdiff
path: root/lc
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-01-20 14:31:32 +0100
committerPéter Diviánszky <divipp@gmail.com>2016-01-20 14:31:32 +0100
commit19591f76e4a97bf3d0ea36ec7203367288ab38cb (patch)
tree150198808737c5b27920f9eb99cc5c35ea7f5fda /lc
parente11ee602c26c7f24ee4dadfea7002f731564106d (diff)
tweak type synonym desugaring
Diffstat (limited to 'lc')
-rw-r--r--lc/Builtins.lc8
1 files changed, 5 insertions, 3 deletions
diff --git a/lc/Builtins.lc b/lc/Builtins.lc
index b1d34c5d..9a8a2221 100644
--- a/lc/Builtins.lc
+++ b/lc/Builtins.lc
@@ -358,12 +358,14 @@ filterStream :: (a -> Bool) -> Stream a -> Stream a
358 358
359data Primitive (a :: PrimitiveType) t 359data Primitive (a :: PrimitiveType) t
360 360
361type PrimitiveStream a t = Stream (Primitive a t)
362
361mapPrimitive :: (a -> b) -> Primitive p a -> Primitive p b 363mapPrimitive :: (a -> b) -> Primitive p a -> Primitive p b
362 364
363fetch_ :: forall a t . (AttributeTuple t) => String -> t -> Stream (Primitive a t) 365fetch_ :: forall a t . (AttributeTuple t) => String -> t -> PrimitiveStream a t
364fetchArrays_ :: forall a t t' . (AttributeTuple t, t ~ FTRepr' t') => t' -> Stream (Primitive a t) 366fetchArrays_ :: forall a t t' . (AttributeTuple t, t ~ FTRepr' t') => t' -> PrimitiveStream a t
365 367
366mapPrimitives :: (t' -> t) -> Stream (Primitive a t') -> Stream (Primitive a t) 368mapPrimitives :: (t' -> t) -> Stream (Primitive a t') -> PrimitiveStream a t
367mapPrimitives f = mapStream (mapPrimitive f) 369mapPrimitives f = mapStream (mapPrimitive f)
368 370
369fetch s a t = fetch_ @a s t 371fetch s a t = fetch_ @a s t