From 34a0e2ac24bc0b2ac7d98124e54eb2a2d1635d83 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 8 Dec 2022 13:21:58 +0200 Subject: Add correct data to project files --- CHANGELOG.md | 11 -------- TODO.txt | 2 ++ lang.cabal | 90 ------------------------------------------------------------ milch.cabal | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ package.yaml | 24 ++++++++-------- todo.md | 6 ---- 6 files changed, 104 insertions(+), 119 deletions(-) delete mode 100644 CHANGELOG.md create mode 100644 TODO.txt delete mode 100644 lang.cabal create mode 100644 milch.cabal delete mode 100644 todo.md diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 385f76d..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,11 +0,0 @@ -# Changelog for `lang` - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to the -[Haskell Package Versioning Policy](https://pvp.haskell.org/). - -## Unreleased - -## 0.1.0.0 - YYYY-MM-DD diff --git a/TODO.txt b/TODO.txt new file mode 100644 index 0000000..fc29273 --- /dev/null +++ b/TODO.txt @@ -0,0 +1,2 @@ +add a `catch` builtin for catching fatal errors +write tests diff --git a/lang.cabal b/lang.cabal deleted file mode 100644 index b4c7793..0000000 --- a/lang.cabal +++ /dev/null @@ -1,90 +0,0 @@ -cabal-version: 1.12 - --- This file has been generated from package.yaml by hpack version 0.34.4. --- --- see: https://github.com/sol/hpack - -name: lang -version: 0.1.0.0 -description: Please see the README on GitHub at -homepage: https://github.com/githubuser/lang#readme -bug-reports: https://github.com/githubuser/lang/issues -author: Author name here -maintainer: example@example.com -copyright: 2022 Author name here -license: BSD3 -license-file: LICENSE -build-type: Simple -extra-source-files: - README.md - CHANGELOG.md - -source-repository head - type: git - location: https://github.com/githubuser/lang - -library - exposed-modules: - Builtins - Interpreter - Parser - Tokenizer - Utils - other-modules: - Paths_lang - hs-source-dirs: - src - ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -O2 - build-depends: - HUnit ==1.6.2.0 - , base >=4.7 && <5 - , containers - , farmhash ==0.1.0.5 - , haskeline ==0.8.2 - , mtl - , regex-tdfa ==1.3.2 - , text - , utf8-string ==1.0.2 - default-language: Haskell2010 - -executable lang-exe - main-is: Main.hs - other-modules: - Paths_lang - hs-source-dirs: - app - ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -O2 -threaded -rtsopts -with-rtsopts=-N - build-depends: - HUnit ==1.6.2.0 - , base >=4.7 && <5 - , containers - , farmhash ==0.1.0.5 - , haskeline ==0.8.2 - , lang - , mtl - , regex-tdfa ==1.3.2 - , text - , utf8-string ==1.0.2 - default-language: Haskell2010 - -test-suite lang-test - type: exitcode-stdio-1.0 - main-is: Spec.hs - other-modules: - TestUtils - Paths_lang - hs-source-dirs: - test - ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -O2 -threaded -rtsopts -with-rtsopts=-N - build-depends: - HUnit ==1.6.2.0 - , base >=4.7 && <5 - , containers - , farmhash ==0.1.0.5 - , haskeline ==0.8.2 - , lang - , mtl - , regex-tdfa ==1.3.2 - , text - , utf8-string ==1.0.2 - default-language: Haskell2010 diff --git a/milch.cabal b/milch.cabal new file mode 100644 index 0000000..acfcb59 --- /dev/null +++ b/milch.cabal @@ -0,0 +1,90 @@ +cabal-version: 1.12 + +-- This file has been generated from package.yaml by hpack version 0.34.4. +-- +-- see: https://github.com/sol/hpack + +name: milch +version: 0.1.0.0 +description: Please see the README on GitHub at +homepage: https://github.com/jantuomi/milch#readme +bug-reports: https://github.com/jantuomi/milch/issues +author: Jan Tuomi +maintainer: jans.tuomi@gmail.com +copyright: 2022 Jan Tuomi +license: MIT +license-file: LICENSE +build-type: Simple +extra-source-files: + README.md + TODO.txt + +source-repository head + type: git + location: https://github.com/jantuomi/milch + +library + exposed-modules: + Builtins + Interpreter + Parser + Tokenizer + Utils + other-modules: + Paths_milch + hs-source-dirs: + src + ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -O2 + build-depends: + HUnit ==1.6.2.0 + , base >=4.7 && <5 + , containers + , farmhash ==0.1.0.5 + , haskeline ==0.8.2 + , mtl + , regex-tdfa ==1.3.2 + , text + , utf8-string ==1.0.2 + default-language: Haskell2010 + +executable milch + main-is: Main.hs + other-modules: + Paths_milch + hs-source-dirs: + app + ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -O2 -threaded -rtsopts -with-rtsopts=-N + build-depends: + HUnit ==1.6.2.0 + , base >=4.7 && <5 + , containers + , farmhash ==0.1.0.5 + , haskeline ==0.8.2 + , milch + , mtl + , regex-tdfa ==1.3.2 + , text + , utf8-string ==1.0.2 + default-language: Haskell2010 + +test-suite milch-test + type: exitcode-stdio-1.0 + main-is: Spec.hs + other-modules: + TestUtils + Paths_milch + hs-source-dirs: + test + ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -O2 -threaded -rtsopts -with-rtsopts=-N + build-depends: + HUnit ==1.6.2.0 + , base >=4.7 && <5 + , containers + , farmhash ==0.1.0.5 + , haskeline ==0.8.2 + , milch + , mtl + , regex-tdfa ==1.3.2 + , text + , utf8-string ==1.0.2 + default-language: Haskell2010 diff --git a/package.yaml b/package.yaml index e8c18e7..8efb1aa 100644 --- a/package.yaml +++ b/package.yaml @@ -1,14 +1,14 @@ -name: lang +name: milch version: 0.1.0.0 -github: "githubuser/lang" -license: BSD3 -author: "Author name here" -maintainer: "example@example.com" -copyright: "2022 Author name here" +github: "jantuomi/milch" +license: MIT +author: "Jan Tuomi" +maintainer: "jans.tuomi@gmail.com" +copyright: "2022 Jan Tuomi" extra-source-files: - README.md -- CHANGELOG.md +- TODO.txt # Metadata used when publishing your package # synopsis: Short description of your package @@ -17,7 +17,7 @@ extra-source-files: # To avoid duplicated efforts in documentation and dealing with the # complications of embedding Haddock markup inside cabal files, it is # common to point users to the README.md file. -description: Please see the README on GitHub at +description: Please see the README on GitHub at dependencies: - base >= 4.7 && < 5 @@ -46,7 +46,7 @@ library: source-dirs: src executables: - lang-exe: + milch: main: Main.hs source-dirs: app ghc-options: @@ -54,10 +54,10 @@ executables: - -rtsopts - -with-rtsopts=-N dependencies: - - lang + - milch tests: - lang-test: + milch-test: main: Spec.hs source-dirs: test ghc-options: @@ -65,4 +65,4 @@ tests: - -rtsopts - -with-rtsopts=-N dependencies: - - lang + - milch diff --git a/todo.md b/todo.md deleted file mode 100644 index 608f87b..0000000 --- a/todo.md +++ /dev/null @@ -1,6 +0,0 @@ -# TODO - -In order of priority - -- Add a `catch` builtin for catching fatal errors -- Write tests! -- cgit v1.3