diff options
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 | ||