summaryrefslogtreecommitdiff
path: root/src/main/frege/examples
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-01-24 17:29:45 +0100
committernea <nea@nea.moe>2023-01-24 17:29:45 +0100
commit5f74d9f5bc9bf58e1608bd94ad23c79d016e4256 (patch)
tree947f1edd05ec35c69e9f2a3029cadbbfa0a8838a /src/main/frege/examples
parentd3c7f67bce284c8829ac53387dec0f863569fac6 (diff)
downloadbuildclient-5f74d9f5bc9bf58e1608bd94ad23c79d016e4256.tar.gz
buildclient-5f74d9f5bc9bf58e1608bd94ad23c79d016e4256.tar.bz2
buildclient-5f74d9f5bc9bf58e1608bd94ad23c79d016e4256.zip
Better error reporting
Diffstat (limited to 'src/main/frege/examples')
-rw-r--r--src/main/frege/examples/HelloFrege.fr7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/frege/examples/HelloFrege.fr b/src/main/frege/examples/HelloFrege.fr
index ff80635..6fe88f7 100644
--- a/src/main/frege/examples/HelloFrege.fr
+++ b/src/main/frege/examples/HelloFrege.fr
@@ -1,10 +1,7 @@
module examples.HelloFrege where
import Test.QuickCheck
-import buildclient.config.BuildParser (parseShortDirective, lexer, runParser, parseFile, findDirective)
-import buildclient.config.BuildConfig (findSource, findBuildSystem, parseBuildConfig)
+import buildclient.config.BuildConfig (parseBuildConfigStr)
main = do
text <- readFile "src/main/resources/testconfig.bcc"
- let lexed = lexer text
- let (Right d) = runParser parseFile lexed
- println $ show $ parseBuildConfig d
+ println $ show $ parseBuildConfigStr text