Scrapbook-0.4.0: code examples
Please see the README on GitLab at https://github.com/frankhjung/haskell-scrapbook#readme
Modules
Scrapbook-0.4.0
- ApplyToTuple Example rank-n-type
- BinarySearch Example binary search
- CFold Continuation passing style, fold
- Caesar Caesar cipher
- Colours Explore semigroup with a colours example
- CountEntries Count entries in a file path
- Cps Continuation passing style, examples
- Expr Simple evaluator for lambda calculus expressions.
- HarmonicOscillation A module to simulate harmonic osciallation.
- Lower Data type to produce only lowercase alphabetic characters.
- Mod35 Test if modulus 3 or 5
- MyFilter Implement filter using a fold
- MyFreeMonad Implement a Free Monad using a DSL as an example.
- MyJson Decode JSON
- MyPenultimate Get penultimate entry of a list
- MyReverse Implement reverse using left and right folds
- MyState Deriving the State Monad
- MySum A module to compute the sum of a list of numbers.
- MyTake Implement take
- MyType Type applications
- Permutation Some alternative permutation functions
- PolyDivisors Find poly-divisors of a number
- Qsort A simple implementation of Qsort
- Random Test random generators
- RecursionSchemes Examples of AnaCataPara-morphisms recursion schemes
- RepMax Repeat maximum element for entire list
- SplitList Examples with zipwith
- Stack Example using the MyState Monad
- SubSeqs A collection of algorithms to generate sub-sequences
- TermFold Explorer Early Termination with Folds
- Trim An inefficient trim white space from front of string.
- Weekday Enumerate week days
- Yahtzee Code from "Good Design an Type Safety in Yahtzee"
- ZipFold Zipping with folds