hnock.cabal (1853B)
1 name: hnock 2 version: 0.4.0 3 synopsis: A Nock interpreter. 4 homepage: https://github.com/jtobin/hnock 5 license: MIT 6 license-file: LICENSE 7 author: Jared Tobin 8 maintainer: jared@jtobin.io 9 category: Language 10 build-type: Simple 11 extra-source-files: CHANGELOG, README.md 12 cabal-version: >=1.10 13 description: 14 A Nock interpreter. 15 . 16 From the shell, simply pipe Nock expressions into the hnock executable: 17 . 18 > $ echo '*[[[4 5] [6 14 15]] [0 7]]' | hnock 19 > [14 15] 20 . 21 For playing around in GHCi, import the Nock library and use hnock to parse 22 and evaluate Nock expressions: 23 . 24 > *Nock> hnock "*[[[4 5] [6 14 15]] [0 7]]" 25 > [14 15] 26 . 27 To evaluate raw nock Nouns, i.e. to compute nock(a) for some noun a, use the 28 'nock' function: 29 . 30 > *Nock> let expression = hnock "[[[4 5] [6 14 15]] [0 7]]" 31 > *Nock> expression 32 > [[[4 5] [6 [14 15]]] [0 7]] 33 > *Nock> nock expression 34 > [14 15] 35 36 source-repository head 37 type: git 38 location: https://github.com/jtobin/hnock 39 40 library 41 default-language: Haskell2010 42 ghc-options: -Wall 43 hs-source-dirs: lib 44 exposed-modules: 45 Nock 46 Nock.Eval 47 Nock.Language 48 Nock.Parse 49 build-depends: 50 base >= 4.12 && < 5 51 , parsec >= 3.1.13.0 && < 3.2 52 , text >= 1.2.3.0 && < 1.3 53 54 executable hnock 55 default-language: Haskell2010 56 ghc-options: -Wall -O2 57 hs-source-dirs: src 58 Main-is: Main.hs 59 build-depends: 60 base >= 4.12 61 , hnock 62 , text >= 1.2.3.0 && < 1.3 63 64 Test-suite hnock-test 65 type: exitcode-stdio-1.0 66 default-language: Haskell2010 67 ghc-options: -Wall 68 hs-source-dirs: test 69 Main-is: Main.hs 70 build-depends: 71 base >= 4.12 72 , hnock 73