diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-02-22 15:15:23 +0100 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-02-22 15:15:44 +0100 |
commit | 23b42e612a6a7864428674b3c9d63ed86fc07435 (patch) | |
tree | 79bea78eba5d508ef9d4072c9721a4c09f87a000 /lc | |
parent | 94dead004d04bd80db17429859454981513be814 (diff) |
rename: fetch_ --> fetch; fetchArrays_ --> fetchArrays
Diffstat (limited to 'lc')
-rw-r--r-- | lc/Builtins.lc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lc/Builtins.lc b/lc/Builtins.lc index 23035684..9484a9d9 100644 --- a/lc/Builtins.lc +++ b/lc/Builtins.lc | |||
@@ -313,15 +313,12 @@ mapPrimitive f (PrimLine a b) = PrimLine (f a) (f b) | |||
313 | mapPrimitive f (PrimTriangle a b c) = PrimTriangle (f a) (f b) (f c) | 313 | mapPrimitive f (PrimTriangle a b c) = PrimTriangle (f a) (f b) (f c) |
314 | -} | 314 | -} |
315 | 315 | ||
316 | fetch_ :: forall a t . (AttributeTuple t) => String -> t -> PrimitiveStream a t | 316 | fetch :: forall a t . (AttributeTuple t) => String -> t -> PrimitiveStream a t |
317 | fetchArrays_ :: forall a t t' . (AttributeTuple t, t ~ HList (map ListElem (HListElem t'))) => t' -> PrimitiveStream a t | 317 | fetchArrays :: forall a t t' . (AttributeTuple t, t ~ HList (map ListElem (HListElem t'))) => t' -> PrimitiveStream a t |
318 | 318 | ||
319 | mapPrimitives :: (a -> b) -> PrimitiveStream p a -> PrimitiveStream p b | 319 | mapPrimitives :: (a -> b) -> PrimitiveStream p a -> PrimitiveStream p b |
320 | mapPrimitives f = map (mapPrimitive f) | 320 | mapPrimitives f = map (mapPrimitive f) |
321 | 321 | ||
322 | fetch s a t = fetch_ @a s t | ||
323 | fetchArrays a t = fetchArrays_ @a t | ||
324 | |||
325 | ------------------- | 322 | ------------------- |
326 | 323 | ||
327 | data Maybe a | 324 | data Maybe a |