From 8c094236aafd11e7d4e728a6efaef23c4e815862 Mon Sep 17 00:00:00 2001 From: Martin Fredin Date: Thu, 9 Feb 2023 20:24:06 +0100 Subject: [PATCH] Add auxiliary module --- Auxiliary.hs | 5 +++++ language.cabal | 1 + 2 files changed, 6 insertions(+) create mode 100644 Auxiliary.hs diff --git a/Auxiliary.hs b/Auxiliary.hs new file mode 100644 index 0000000..cd844d7 --- /dev/null +++ b/Auxiliary.hs @@ -0,0 +1,5 @@ + +module Auxiliary (module Auxiliary) where + +snoc :: a -> [a] -> [a] +snoc x xs = xs ++ [x] diff --git a/language.cabal b/language.cabal index 3f4860c..52b2577 100644 --- a/language.cabal +++ b/language.cabal @@ -31,6 +31,7 @@ executable language Grammar.Print Grammar.Skel LambdaLifter + Auxiliary -- Interpreter hs-source-dirs: src