git.iko.soy/rowtype-yoga/purescript-native
on cb906fa help sign in
15 lines 268 B history raw
1module Main where
3import Data.Array
5test :: [] Number
6test = [1, 2, 3]
8class Functor f where
9 fmap :: forall a b. (a -> b) -> f a -> f b
11instance functorArray :: Functor [] where
12 fmap _ [] = []
13 fmap f (x:xs) = f x : fmap f xs
15main = Debug.Trace.trace "Done"