sorted out module organisation
This commit is contained in:
parent
b41c3926df
commit
d31a01ab9c
@ -81,12 +81,12 @@ test-suite haskell-exps-test
|
|||||||
other-modules: Test.OlogsSpec,
|
other-modules: Test.OlogsSpec,
|
||||||
Test.SimpleParserSpec,
|
Test.SimpleParserSpec,
|
||||||
Test.ArithmeticParserSpec,
|
Test.ArithmeticParserSpec,
|
||||||
Test.DatalogParserSpec
|
Test.Datalog.DatalogParserSpec
|
||||||
|
|
||||||
library langfeatures
|
library langfeatures
|
||||||
build-depends: base, containers, megaparsec, parser-combinators, text
|
build-depends: base, containers, megaparsec, parser-combinators, text
|
||||||
hs-source-dirs: src
|
hs-source-dirs: src
|
||||||
exposed-modules: Ologs, SimpleParser, ArithmeticParser, DatalogParser
|
exposed-modules: Ologs, SimpleParser, ArithmeticParser, Datalog.DatalogParser
|
||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
|
|
||||||
executable haskell-experiments
|
executable haskell-experiments
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
{-# LANGUAGE TypeApplications #-}
|
{-# LANGUAGE TypeApplications #-}
|
||||||
|
|
||||||
module DatalogParser where
|
module Datalog.DatalogParser where
|
||||||
|
|
||||||
import Data.Void
|
import Data.Void
|
||||||
import Data.Text (Text)
|
import Data.Text (Text)
|
||||||
@ -4,7 +4,7 @@ import Test.Hspec
|
|||||||
import qualified Test.OlogsSpec as Ologs
|
import qualified Test.OlogsSpec as Ologs
|
||||||
import qualified Test.SimpleParserSpec as SimpleParserSpec
|
import qualified Test.SimpleParserSpec as SimpleParserSpec
|
||||||
import qualified Test.ArithmeticParserSpec as ArithmeticParserSpec
|
import qualified Test.ArithmeticParserSpec as ArithmeticParserSpec
|
||||||
import qualified Test.DatalogParserSpec as DatalogParserSpec
|
import qualified Test.Datalog.DatalogParserSpec as DatalogParserSpec
|
||||||
|
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = hspec $ do
|
main = hspec $ do
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
|
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
|
||||||
{-# LANGUAGE TypeApplications #-}
|
{-# LANGUAGE TypeApplications #-}
|
||||||
|
|
||||||
module Test.DatalogParserSpec where
|
module Test.Datalog.DatalogParserSpec where
|
||||||
|
|
||||||
import Test.Hspec
|
import Test.Hspec
|
||||||
import DatalogParser
|
import Datalog.DatalogParser
|
||||||
|
|
||||||
-- checkParse :: String -> Expr -> Expectation
|
-- checkParse :: String -> Expr -> Expectation
|
||||||
-- checkParse text expectedExpr =
|
-- checkParse text expectedExpr =
|
||||||
Loading…
x
Reference in New Issue
Block a user