Skip to content

Instantly share code, notes, and snippets.

gfixler /
Last active Dec 26, 2017 — forked from borgfriend/
Maya 2017 Installation on Ubuntu 16.04
# Make sure the tgz file is in the home directory
# Original script downloaded educational version,
# whereas I need to use the full, paid-for version
if [ ! -f ~/$FILE ]; then
echo Cannot find ~/$FILE
#Heith Seewald 2012
#Feel free to extend/modify to meet your needs.
#Maya on Ubuntu v.1
#This is the base installer... I’ll add more features in later versions.
#if you have any issues, feel free email me at
#### Lets run a few checks to make sure things work as expected.
#Make sure we’re running with root permissions.
if [ `whoami` != root ]; then
View MyState.hs
data MyState s a = MyState (s -> (a, s))
get :: MyState s s
get = undefined
put :: s -> MyState s ()
put = undefined
modify :: (s -> s) -> MyState s ()
modify = undefined