summaryrefslogtreecommitdiff
path: root/Lattice.hs
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2019-05-11 22:49:50 +0200
committertomsmeding <tom.smeding@gmail.com>2019-05-11 22:49:50 +0200
commitb2d9c2b8e971a63de1a5be36e01068f3bc03f054 (patch)
tree9b04cb8833dc2fd24a91356a280cf161f7af0f31 /Lattice.hs
parentb6720c744c642048f93e04a3a2d4b6895d8b2c83 (diff)
Liveness analysislower-to-isa
Diffstat (limited to 'Lattice.hs')
-rw-r--r--Lattice.hs9
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