1. Start a local webserver to serve the file of your current directory on the LAN:
# Python version 2.x:
python -m SimpleHTTPServer
# Python version 3.x:
python3 -m http.server
module PyramidSlideDown where | |
-- import Data.Foldable as F | |
import Control.Arrow | |
longestSlideDown :: [[Int]] -> Int | |
longestSlideDown = foldl1 combine >>> maximum | |
where | |
xs `combine` ys = head ls : zipWith max (tail ls) (init rs) ++ [last rs] | |
where |
This is a (hopefully) short list of Haskell blogs I consider worth reading for intermediate Haskellers.
Generated using http://github.com/rbuckton/grammarkdown
SourceCharacter ::
any Unicode code point
InputElementDiv ::
WhiteSpace
LineTerminator
Comment
This blog post series has moved here.
You might also be interested in the 2016 version.
{ | |
"name": "my-app", | |
"version": "1.0.0", | |
"description": "My test app", | |
"main": "src/js/index.js", | |
"scripts": { | |
"jshint:dist": "jshint src/js/*.js", | |
"jshint": "npm run jshint:dist", | |
"jscs": "jscs src/*.js", | |
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js", |
This is material to go along with a 2014 Boston Haskell talk.
We are going to look at a series of type signatures in Haskell and explore how parametricity (or lack thereof) lets us constrain what a function is allowed to do.
Let's start with a decidedly non-generic function signature. What are the possible implementations of this function which typecheck?
wrangle :: Int -> Int
###Browsers
###Editors && IDE