mirror of
https://github.com/mrdomino/hsnock.git
synced 2024-07-07 10:26:20 +03:00
Clean things up a bit
This commit is contained in:
parent
c91a108699
commit
3d78b81736
7
Language/Nock5K.hs
Normal file
7
Language/Nock5K.hs
Normal file
|
@ -0,0 +1,7 @@
|
|||
module Language.Nock5K (
|
||||
Noun(Atom, (:-)), nock, noun, repl
|
||||
) where
|
||||
|
||||
import Language.Nock5K.Parse
|
||||
import Language.Nock5K.Repl
|
||||
import Language.Nock5K.Spec
|
|
@ -1,7 +1,7 @@
|
|||
module Nock5K.Parse (noun) where
|
||||
module Language.Nock5K.Parse where
|
||||
|
||||
import Control.Applicative ((<$>))
|
||||
import Nock5K.Spec
|
||||
import Language.Nock5K.Spec
|
||||
import Text.ParserCombinators.Parsec
|
||||
|
||||
instance Show Noun where
|
|
@ -1,7 +1,7 @@
|
|||
module Nock5K.Repl (repl) where
|
||||
module Language.Nock5K.Repl where
|
||||
|
||||
import Nock5K.Parse
|
||||
import Nock5K.Spec
|
||||
import Language.Nock5K.Parse
|
||||
import Language.Nock5K.Spec
|
||||
import qualified Control.Exception as C
|
||||
import System.Console.Readline
|
||||
import Text.ParserCombinators.Parsec
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
> module Nock5K.Spec (Noun (Atom, (:-)), nock) where
|
||||
> module Language.Nock5K.Spec where
|
||||
|
||||
1 Structures
|
||||
|
51
hsnock.cabal
51
hsnock.cabal
|
@ -1,17 +1,38 @@
|
|||
name: hsnock
|
||||
version: 0.1.0.0
|
||||
synopsis: Nock 5K interpreter
|
||||
author: Steven Dee
|
||||
maintainer: mrdomino@gmail.com
|
||||
category: Language
|
||||
build-type: Simple
|
||||
cabal-version: >=1.8
|
||||
name : hsnock
|
||||
version : 0.1.1
|
||||
category : Language
|
||||
license : PublicDomain
|
||||
synopsis : Nock 5K interpreter.
|
||||
author : Steven Dee
|
||||
maintainer : mrdomino@gmail.com
|
||||
homepage : https://github.com/mrdomino/hsnock/
|
||||
|
||||
build-type : Simple
|
||||
cabal-version : >=1.8
|
||||
data-files : README
|
||||
|
||||
source-repository head
|
||||
type : git
|
||||
location : https://github.com/mrdomino/hsnock.git
|
||||
|
||||
library
|
||||
build-depends : base >=4.5
|
||||
, parsec >=3.1
|
||||
, readline >=1.0
|
||||
exposed-modules : Language.Nock5K
|
||||
, Language.Nock5K.Parse
|
||||
, Language.Nock5K.Spec
|
||||
, Language.Nock5K.Repl
|
||||
|
||||
executable hsnock
|
||||
main-is : hsnock.lhs
|
||||
build-depends : base >=4.5
|
||||
, parsec >=3.1
|
||||
, readline >=1.0
|
||||
|
||||
test-suite test
|
||||
type: exitcode-stdio-1.0
|
||||
main-is: test.hs
|
||||
build-depends: base >=4.5, parsec >=3.1, QuickCheck >=2.6
|
||||
|
||||
executable hsnock
|
||||
main-is: nock.hs
|
||||
build-depends: base >=4.5, parsec >=3.1, readline >=1.0
|
||||
type : exitcode-stdio-1.0
|
||||
main-is : test.hs
|
||||
build-depends : base >=4.5
|
||||
, parsec >=3.1
|
||||
, QuickCheck >=2.6
|
||||
|
|
3
hsnock.lhs
Executable file
3
hsnock.lhs
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env runhaskell
|
||||
> import Language.Nock5K
|
||||
> main = repl
|
Loading…
Reference in New Issue
Block a user