diff options
Diffstat (limited to 'Lattice.hs')
-rw-r--r-- | Lattice.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lattice.hs b/Lattice.hs new file mode 100644 index 0000000..574c123 --- /dev/null +++ b/Lattice.hs @@ -0,0 +1,9 @@ +module Lattice where + + +class Eq a => Lattice a where + join :: a -> a -> a + bottom :: a + + joinList :: [a] -> a + joinList = foldl join bottom |