File: part22.lhs

package info (click to toggle)
haskell98-tutorial 200006-2-1.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 864 kB
  • ctags: 59
  • sloc: haskell: 2,125; makefile: 66; sh: 9
file content (16 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Gentle Introduction to Haskell 98, Online Supplement 
Part 22
Covers Section 11.1

Section: 11.1  Qualified Names

> module Part22() where
> import Tree ( Tree(Leaf,Branch), fringe )
> import qualified Fringe ( fringe )  

See Fringe.lhs

> e1 = do print (fringe (Branch (Leaf 1) (Leaf 2)))
>         print (Fringe.fringe (Branch (Leaf 1) (Leaf 2)))

Continued in part23.lhs