Line No. | Rev | Author | Line |
---|---|---|---|
1 | 1 | paulosilva | |
2 | {-# OPTIONS_GHC -Wall #-} | ||
3 | |||
4 | ------------------------------------------------------------------------------- | ||
5 | |||
6 | {- | | ||
7 | Module : Control.MonadPosition | ||
8 | Description : | ||
9 | Copyright : (c) Paulo Silva | ||
10 | License : LGPL | ||
11 | |||
12 | Maintainer : paufil@di.uminho.pt | ||
13 | Stability : experimental | ||
14 | Portability : portable | ||
15 | <description of the module> | ||
16 | |||
17 | -} | ||
18 | |||
19 | ------------------------------------------------------------------------------- | ||
20 | |||
21 | module Control.MonadPosition ( | ||
22 | MonadPosition, | ||
23 | branchLeft, | ||
24 | branchRight, | ||
25 | getPosition | ||
26 | ) where | ||
27 | ------------------------------------------------------------------------------- | ||
28 | |||
29 | type Pos = [Int] | ||
30 | |||
31 | class MonadPosition m where | ||
32 | branchLeft :: m () | ||
33 | branchRight :: m () | ||
34 | getPosition :: m Pos | ||
35 | |||
36 | ------------------------------------------------------------------------------- | ||
37 |