Skip to content

Instantly share code, notes, and snippets.

@kakkun61
Created July 8, 2012 17:42
Show Gist options
  • Save kakkun61/3072012 to your computer and use it in GitHub Desktop.
Save kakkun61/3072012 to your computer and use it in GitHub Desktop.
Functional Composition in Haskell
#! /usr/bin/runhaskell
module Main (
main
) where
f = exp
g = (** 2)
h = (+ 1) . negate
main = print $ (f.g.h) 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment