git.iko.soy/rowtype-yoga/purescript-native
on c44e5ce help sign in
17 lines 304 B history raw
1module ArrayType where
3test :: [] Number
4test = [1, 2, 3]
6class Functor f where
7 fmap :: forall a b. (a -> b) -> f a -> f b
9foreign import (:) :: forall a. a -> [a] -> [a]
11instance Functor [] where
12 fmap _ [] = []
13 fmap f (x:xs) = f x : fmap f xs
15module Main where
17main = Trace.trace "Done"