From 86b1538d3d0e85fcc6025e8a3fd8942d04e80c07 Mon Sep 17 00:00:00 2001 From: crumbtoo Date: Wed, 15 Nov 2023 10:12:35 -0700 Subject: [PATCH] reexport submodule --- rlp.cabal | 3 +++ src/Core.hs | 7 +++++++ src/Core/{CoreLex.hs => Lex.hs} | 2 +- src/Core/{CoreParse.hs => Parse.hs} | 2 +- src/Core/Syntax.hs | 2 +- 5 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 src/Core.hs rename src/Core/{CoreLex.hs => Lex.hs} (86%) rename src/Core/{CoreParse.hs => Parse.hs} (85%) diff --git a/rlp.cabal b/rlp.cabal index f7c34e7..e25a5ab 100644 --- a/rlp.cabal +++ b/rlp.cabal @@ -23,6 +23,9 @@ library other-modules: Data.Heap , Data.Pretty , Control.Parser + , Core.Syntax + , Core.Parse + , Core.Lex -- other-extensions: build-depends: base ^>=4.18.0.0 diff --git a/src/Core.hs b/src/Core.hs new file mode 100644 index 0000000..5b62cb8 --- /dev/null +++ b/src/Core.hs @@ -0,0 +1,7 @@ +module Core + ( module Core.Syntax + ) + where +---------------------------------------------------------------------------------- +import Core.Syntax + diff --git a/src/Core/CoreLex.hs b/src/Core/Lex.hs similarity index 86% rename from src/Core/CoreLex.hs rename to src/Core/Lex.hs index ce8cf58..a8c5903 100644 --- a/src/Core/CoreLex.hs +++ b/src/Core/Lex.hs @@ -1,4 +1,4 @@ -module CoreLex +module Core.Lex ( ) where diff --git a/src/Core/CoreParse.hs b/src/Core/Parse.hs similarity index 85% rename from src/Core/CoreParse.hs rename to src/Core/Parse.hs index 707738a..bc70a3a 100644 --- a/src/Core/CoreParse.hs +++ b/src/Core/Parse.hs @@ -1,4 +1,4 @@ -module CoreParse +module Core.Parse ( ) where diff --git a/src/Core/Syntax.hs b/src/Core/Syntax.hs index 8acec6c..901ab25 100644 --- a/src/Core/Syntax.hs +++ b/src/Core/Syntax.hs @@ -1,5 +1,5 @@ {-# LANGUAGE PatternSynonyms, OverloadedStrings #-} -module Core +module Core.Syntax ( Expr(..) , pattern (:$) , Binding(..)