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