Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Defines an ordered triple of orthogonal timetable-axes.
- Since these axes represent different concepts, the order in which they're traversed when defining the lesson at each time-slot, is significant.
Synopsis
- data Axes
- tag :: String
- permutations :: [Axes]
- fromList :: [AxisTraversal] -> Axes
- toList :: Axes -> [AxisTraversal]
- invertSense :: Axes -> Axes
- generatePermutationsOf :: Axes -> [Axes]
- mkAxes :: Triple -> Axes
- hasWildSense :: Axes -> Bool
Types
Type-synonyms
Data-types
Dummy data-type on which to hang instance-definitions.
Constants
permutations :: [Axes] Source #
The constant list of all permutations of axis-order & sense of travel along each.
Functions
fromList :: [AxisTraversal] -> Axes Source #
Convert from a list of axis-traversals.
toList :: Axes -> [AxisTraversal] Source #
Convert into a list of axis-traversals.
invertSense :: Axes -> Axes Source #
Invert the sense of each axis, but not their order, thus reversing the raster.
generatePermutationsOf :: Axes -> [Axes] Source #
The list of permutations of axis-order & sense of travel along each matching the supplied specification.
Constructor
Predicates
hasWildSense :: Axes -> Bool Source #
True if the sense is ill-defined.