Skip to content

Commit b9b6835

Browse files
committed
Finish Chapter 1
0 parents  commit b9b6835

15 files changed

+988
-0
lines changed

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Haskell
2+
*.hi
3+
*.o
4+
5+
# Cabal
6+
*.cabal
7+
8+
# Haskell Tool Stack
9+
.stack-work/
10+
dist/
11+
12+
# Emacs
13+
.dir-locals.el
14+
*~

LICENSE

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Copyright Junyoung Clare Jang (c) 2019
2+
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
* Redistributions of source code must retain the above copyright
9+
notice, this list of conditions and the following disclaimer.
10+
11+
* Redistributions in binary form must reproduce the above
12+
copyright notice, this list of conditions and the following
13+
disclaimer in the documentation and/or other materials provided
14+
with the distribution.
15+
16+
* Neither the name of Junyoung Clare Jang nor the names of other
17+
contributors may be used to endorse or promote products derived
18+
from this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# core-lang-haskell
2+
3+
This repository is about an implementation of a simple functional language based on [Simon\[1\]][^1].
4+
5+
[^1]: Simon Peyton Jones. January 1992. _Implementing functional languages: a tutorial_. Prentice Hall

Setup.hs

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import Distribution.Simple
2+
main = defaultMain

app/Main.hs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module Main where
2+
3+
main :: IO ()
4+
main = putStrLn "Do nothing"

exercises/exercise1-1.xls

9 KB
Binary file not shown.

exercises/exercise1-4.xls

6 KB
Binary file not shown.

package.yaml

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
spec-version: 0.31.0
2+
name: core-lang-haskell
3+
version: 0.1.0.0
4+
#synopsis:
5+
#description:
6+
category: Web
7+
homepage: https://github.com/Ailrun/core-lang-haskell#readme
8+
bug-reports: https://github.com/Ailrun/core-lang-haskell/issues
9+
author: Junyoung Clare Jang
10+
maintainer: [email protected]
11+
copyright: 2019 Junyoung Clare Jang
12+
license: BSD3
13+
license-file: LICENSE
14+
#tested-with:
15+
#build-type: Simple
16+
extra-source-files:
17+
- README.md
18+
#extra-doc-files:
19+
#data-files:
20+
#data-dir:
21+
github: Ailrun/core-lang-haskell
22+
#custom-setup:
23+
#dependencies:
24+
25+
#flags:
26+
27+
library:
28+
## Common fields
29+
source-dirs:
30+
- src
31+
## Library fields
32+
#exposed:
33+
#exposed-modules:
34+
#generated-exposed-modules:
35+
#other-modules:
36+
#generated-other-modules:
37+
#reexported-modules:
38+
#signatures:
39+
40+
#internal-libraries:
41+
42+
executables:
43+
core-lang-haskell:
44+
## Common fields
45+
source-dirs:
46+
- app
47+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
48+
dependencies:
49+
- core-lang-haskell
50+
## Executable fields
51+
main: Main.hs
52+
#other-modules:
53+
#generated-other-modules:
54+
55+
#executable:
56+
57+
tests:
58+
core-lang-haskell-test:
59+
## Common fields
60+
source-dirs:
61+
- test
62+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
63+
dependencies:
64+
- core-lang-haskell
65+
- hspec
66+
- QuickCheck
67+
## Test fields
68+
main: Spec.hs
69+
#other-modules:
70+
#generated-other-modules:
71+
72+
#benchmarks:
73+
74+
#defaults:
75+
#github:
76+
#ref:
77+
#path:
78+
#local:
79+
80+
## Common fields
81+
#buildable:
82+
#source-dirs:
83+
#default-extensions:
84+
#other-extensions:
85+
#ghc-options:
86+
#ghc-prof-options:
87+
#ghcjs-options:
88+
#cpp-options:
89+
#cc-options:
90+
#c-sources:
91+
#cxx-options:
92+
#cxx-sources:
93+
#js-sources:
94+
#extra-lib-dirs:
95+
#extra-libraries:
96+
#include-dirs:
97+
#install-includes:
98+
#frameworks:
99+
#extra-frameworks-dirs:
100+
#ld-options:
101+
dependencies:
102+
- base >= 4.7 && < 5
103+
#pkg-config-dependencies:
104+
#build-tools:
105+
#system-build-tools:
106+
#when:

0 commit comments

Comments
 (0)