Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Search
--ghc 7.10 module Main where infixr 0 ? newtype S a = S { (?) :: (a -> Bool) -> a } instance Functor S where fmap f xx = S $ \q -> f(xx ? q.f) ss xx q f = f(xx ? q.f) instance Applicative S where pure x = S (const x) ff <*> xx = S $ \p -> ss ff p $ ss xx p main = print $ "Hello, world!"
run
|
edit
|
history
|
help
0
ReadablePractice
haskell_exam
Factorial in haskell
project euler 1, haskel
ReaderPractice
Exercise
haskell linked list
Quicksort in Haskell
Invert a monotonic function
boolean functions of zero arguments in haskell