https://github.com/weaming/haskell-demo
https://github.com/weaming/haskell-demo
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/weaming/haskell-demo
- Owner: weaming
- Created: 2017-05-06T10:01:19.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-06T10:01:46.000Z (about 9 years ago)
- Last Synced: 2025-11-30T16:23:49.860Z (7 months ago)
- Language: Haskell
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Compile Example
gch compile words.hs
## Introduce to these single file programs
### words.hs
Count the words in one file
./words < words.hs
Output:
a : 10
x : 8
map : 6
quicksort : 6
y : 6
let : 5
import : 4
### rpn.hs
rpn 3 4 + 2 *
# equal to (3+4)*2
### bmi.hs
Caculate your BMI.
### concat.hs
Concat two line.
#### capslocker.hs
Transfor text to uppercase.