Rename cλash dir to clash so it behaves well within the ghc build tree
[matthijs/master-project/cλash.git] / clash / Data / Param / Integer.hs
diff --git a/clash/Data/Param/Integer.hs b/clash/Data/Param/Integer.hs
new file mode 100644 (file)
index 0000000..b4b1ec8
--- /dev/null
@@ -0,0 +1,13 @@
+module Data.Param.Integer
+  ( Signed(..)
+  , Unsigned(..)
+  , Index (..)
+  ) where
+
+import Types
+
+newtype (NaturalT nT) => Signed nT = Signed Integer
+
+newtype (NaturalT nT) => Unsigned nT = Unsigned Integer
+
+newtype (NaturalT upper) => Index upper = Index Integer
\ No newline at end of file