diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-01-20 14:31:32 +0100 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-01-20 14:31:32 +0100 |
commit | 19591f76e4a97bf3d0ea36ec7203367288ab38cb (patch) | |
tree | 150198808737c5b27920f9eb99cc5c35ea7f5fda /lc | |
parent | e11ee602c26c7f24ee4dadfea7002f731564106d (diff) |
tweak type synonym desugaring
Diffstat (limited to 'lc')
-rw-r--r-- | lc/Builtins.lc | 8 |
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 | ||
359 | data Primitive (a :: PrimitiveType) t | 359 | data Primitive (a :: PrimitiveType) t |
360 | 360 | ||
361 | type PrimitiveStream a t = Stream (Primitive a t) | ||
362 | |||
361 | mapPrimitive :: (a -> b) -> Primitive p a -> Primitive p b | 363 | mapPrimitive :: (a -> b) -> Primitive p a -> Primitive p b |
362 | 364 | ||
363 | fetch_ :: forall a t . (AttributeTuple t) => String -> t -> Stream (Primitive a t) | 365 | fetch_ :: forall a t . (AttributeTuple t) => String -> t -> PrimitiveStream a t |
364 | fetchArrays_ :: forall a t t' . (AttributeTuple t, t ~ FTRepr' t') => t' -> Stream (Primitive a t) | 366 | fetchArrays_ :: forall a t t' . (AttributeTuple t, t ~ FTRepr' t') => t' -> PrimitiveStream a t |
365 | 367 | ||
366 | mapPrimitives :: (t' -> t) -> Stream (Primitive a t') -> Stream (Primitive a t) | 368 | mapPrimitives :: (t' -> t) -> Stream (Primitive a t') -> PrimitiveStream a t |
367 | mapPrimitives f = mapStream (mapPrimitive f) | 369 | mapPrimitives f = mapStream (mapPrimitive f) |
368 | 370 | ||
369 | fetch s a t = fetch_ @a s t | 371 | fetch s a t = fetch_ @a s t |