mirror of
https://github.com/mrdomino/hsnock.git
synced 2024-08-17 01:30:34 +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 Control.Applicative ((<$>))
|
||||||
import Nock5K.Spec
|
import Language.Nock5K.Spec
|
||||||
import Text.ParserCombinators.Parsec
|
import Text.ParserCombinators.Parsec
|
||||||
|
|
||||||
instance Show Noun where
|
instance Show Noun where
|
@ -1,7 +1,7 @@
|
|||||||
module Nock5K.Repl (repl) where
|
module Language.Nock5K.Repl where
|
||||||
|
|
||||||
import Nock5K.Parse
|
import Language.Nock5K.Parse
|
||||||
import Nock5K.Spec
|
import Language.Nock5K.Spec
|
||||||
import qualified Control.Exception as C
|
import qualified Control.Exception as C
|
||||||
import System.Console.Readline
|
import System.Console.Readline
|
||||||
import Text.ParserCombinators.Parsec
|
import Text.ParserCombinators.Parsec
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
> module Nock5K.Spec (Noun (Atom, (:-)), nock) where
|
> module Language.Nock5K.Spec where
|
||||||
|
|
||||||
1 Structures
|
1 Structures
|
||||||
|
|
37
hsnock.cabal
37
hsnock.cabal
@ -1,17 +1,38 @@
|
|||||||
name : hsnock
|
name : hsnock
|
||||||
version: 0.1.0.0
|
version : 0.1.1
|
||||||
synopsis: Nock 5K interpreter
|
category : Language
|
||||||
|
license : PublicDomain
|
||||||
|
synopsis : Nock 5K interpreter.
|
||||||
author : Steven Dee
|
author : Steven Dee
|
||||||
maintainer : mrdomino@gmail.com
|
maintainer : mrdomino@gmail.com
|
||||||
category: Language
|
homepage : https://github.com/mrdomino/hsnock/
|
||||||
|
|
||||||
build-type : Simple
|
build-type : Simple
|
||||||
cabal-version : >=1.8
|
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
|
test-suite test
|
||||||
type : exitcode-stdio-1.0
|
type : exitcode-stdio-1.0
|
||||||
main-is : test.hs
|
main-is : test.hs
|
||||||
build-depends: base >=4.5, parsec >=3.1, QuickCheck >=2.6
|
build-depends : base >=4.5
|
||||||
|
, parsec >=3.1
|
||||||
executable hsnock
|
, QuickCheck >=2.6
|
||||||
main-is: nock.hs
|
|
||||||
build-depends: base >=4.5, parsec >=3.1, readline >=1.0
|
|
||||||
|
3
hsnock.lhs
Executable file
3
hsnock.lhs
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env runhaskell
|
||||||
|
> import Language.Nock5K
|
||||||
|
> main = repl
|
3
test.hs
3
test.hs
@ -1,6 +1,5 @@
|
|||||||
import Control.Applicative
|
import Control.Applicative
|
||||||
import Nock5K.Parse
|
import Language.Nock5K
|
||||||
import Nock5K.Spec
|
|
||||||
import Test.QuickCheck
|
import Test.QuickCheck
|
||||||
import Text.ParserCombinators.Parsec (parse)
|
import Text.ParserCombinators.Parsec (parse)
|
||||||
import Text.Printf
|
import Text.Printf
|
||||||
|
Loading…
Reference in New Issue
Block a user