summaryrefslogtreecommitdiff
path: root/functor/h2.hs
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2015-03-25 15:14:35 +0800
committerJoe Zhao <ztuowen@gmail.com>2015-03-25 15:14:35 +0800
commit22fc8bffd0ee10d4e7e4ad7f4c65b472fea4fb50 (patch)
tree44ff6c3c972c56a027c606c9cef20b9d32e9e1dc /functor/h2.hs
downloadtypeclass-22fc8bffd0ee10d4e7e4ad7f4c65b472fea4fb50.tar.gz
typeclass-22fc8bffd0ee10d4e7e4ad7f4c65b472fea4fb50.tar.bz2
typeclass-22fc8bffd0ee10d4e7e4ad7f4c65b472fea4fb50.zip
first commit
Diffstat (limited to 'functor/h2.hs')
-rw-r--r--functor/h2.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/functor/h2.hs b/functor/h2.hs
new file mode 100644
index 0000000..54be77c
--- /dev/null
+++ b/functor/h2.hs
@@ -0,0 +1,2 @@
+instance Functor ((->) e) where
+ fmap = (.)