Skip to content

Haskell code snippets, often mathematical and functional proofs or just programming structures

License

Notifications You must be signed in to change notification settings

GavinDonnelly/haskell-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haskell Code

A place to store Haskell code snippets, often mathematical and functional proofs or just programming structures. Before I get into the contents of this repo. I would like to thank the people that taught me most of my functional programming knowledge.


Overview

This Repo is split into directories of code,

  • BasicCode: Files of basic Haskell code, manipulation of strings, integers and lists, some sorting algorithms.
  • Experimental: Small programs built on simple experimental ideas like a bank system or the game of hangman.
  • Logic and Proofs: More structured code, laying out different concepts like propositional logic or topological sorting.

Usage

Please feel free to use this code and learn from it thats what I wrote it to teach myself through it. Some of the code is inspired by questions I was given or Exam material. So is inspired by a simple idea.

If you have never seen Haskell I recommend visiting Haskell.org, they have a great in browser compiler to try it out and lead you through the basics. There is also plenty of documentation to get you set up on your machine if you really want to get serious and try some of your own or my code out.

Running Code

Remember, when running Haskell code to learn or explore the programming concepts GCHi is your friend. Running a program is as easy as:

$ ghci
GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
Prelude> :load strings-and-lists-v1_4.hs
	[1 of 1] Compiling Main             ( strings-and-lists-v1_4.hs, interpreted )
	Ok, modules loaded: Main.
*Main> take 3 "abcde"
"abc"
*Main> :q
Leaving GHCi.
$

About

Haskell code snippets, often mathematical and functional proofs or just programming structures

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published