diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-05-15 23:08:51 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-05-15 23:08:51 +0200 |
commit | 19b440fbabf5bc95e97a7a53119ec6218c3639d7 (patch) | |
tree | b33a0c3c5ddcbc41853af3bec260dee0dd5f8cfa /src/Refined | |
parent | 7bd8b73c107590bc2e578395fe940b95752654c0 (diff) | |
download | trivmix-master.tar trivmix-master.tar.gz trivmix-master.tar.bz2 trivmix-master.tar.xz trivmix-master.zip |
Diffstat (limited to 'src/Refined')
-rw-r--r-- | src/Refined/AEq.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Refined/AEq.hs b/src/Refined/AEq.hs new file mode 100644 index 0000000..0a60679 --- /dev/null +++ b/src/Refined/AEq.hs | |||
@@ -0,0 +1,12 @@ | |||
1 | {-# OPTIONS_GHC -fno-warn-orphans #-} | ||
2 | |||
3 | module Refined.AEq where | ||
4 | |||
5 | import Data.AEq | ||
6 | import Refined | ||
7 | |||
8 | import Data.Function (on) | ||
9 | |||
10 | instance AEq a => AEq (Refined p a) where | ||
11 | (===) = (===) `on` unrefine | ||
12 | (~==) = (~==) `on` unrefine | ||