From 331195b0d690d89d43e7eca9565ea2b013e87f25 Mon Sep 17 00:00:00 2001 From: Miguel Date: Sun, 17 Mar 2019 13:34:44 +0100 Subject: many things --- .../00010_Links-and-Notes-and-Literature/index.md | 69 ---------------------- 1 file changed, 69 deletions(-) delete mode 100644 080_blog/00040_Haskell/00010_Links-and-Notes-and-Literature/index.md (limited to '080_blog/00040_Haskell/00010_Links-and-Notes-and-Literature') diff --git a/080_blog/00040_Haskell/00010_Links-and-Notes-and-Literature/index.md b/080_blog/00040_Haskell/00010_Links-and-Notes-and-Literature/index.md deleted file mode 100644 index 2eb1215..0000000 --- a/080_blog/00040_Haskell/00010_Links-and-Notes-and-Literature/index.md +++ /dev/null @@ -1,69 +0,0 @@ -# Haskell - -## Books, Links and Papers - -* **Learn You a Haskell** for Great Good by Marian Lipovaca -* **Real World Haskell** by Bryan O'Sullivan, Don Stewart, and John Goerzen -* **Parallel and Concurrent Programming in Haskell** by Simon Marlow - -* **Haskell Wiki** -* **UPENN CIS 194** -* **What I Wish I Knew When Learning Haskell** by Stephen Diehl -* **Data61 Course** - -* **Monads for functional programming (paper)** by Philip Wadler -* **Functional Pearl (paper)** -* **Why Functional Programming Matters (paper)** - -* **Mailing Lists** -* **IRC** #haskell at chat.freenode.at -* **Monadic Warsaw** - - -## xmonad-contrib contribution - -Added a pretty printer for empty visible workspaces\ - - -## Some GHC Flags - - -v verbose mode - -O2 level 2 optimizations - -rtsopts allow +RTS flags - -prof enable basic time and allocation profiling - -auto-all cost centers on all top level functions - (you can also add them via the SCC pragma) - -caf-all generate data for CAFs (constant applicative forms) - -fforce-recomp force recompilation - -threaded Use threaed runtime - -eventlog enables +RTS -l flag - - -Wall - -Werror - - Notes: you will obtain the profiling versions of dependancies via: - stack install --profile [libraryname] - - -fprof-auto replaced -auto-all - -fprof-cafs replaced -caf-all - -## Some +RTS flags - - -K set stack limit - -s statistic reporting - -p profiling - -hc extract heap profile - -hy allocation by type - -hd allocation by constructor - -ix x is sampling frequency in seconds. e.g. 0.01) - -Nx x is number of cores to utilize - -l emit log file (can be used threadscope) - -ddump-simpl generate core - - Note: render the heap profile as graph with: hp2ps -e8in -c file.hp - show eventlog with: threadscope file.eventlog - -## monad transformers in action - - Main Control.Monad.Writer Control.Monad.State> runState (runWriterT (get >>= \a -> tell ["foo"] >> put (a*a) >> tell ["bar"] >> tell [show a])) 5 - -- cgit v1.2.3