background preloader

Learn You a Haskell for Great Good! - Chapters

Learn You a Haskell for Great Good! - Chapters

http://learnyouahaskell.com/chapters

Related:  haskellHaskell

99 questions/1 to 10 This is part of Ninety-Nine Haskell Problems, based on Ninety-Nine Prolog Problems and Ninety-Nine Lisp Problems. 1 Problem 1 (*) Find the last element of a list. (Note that the Lisp transcription of this problem is incorrect.) Example in Haskell: Prelude> myLast [1,2,3,4]4 Prelude> myLast ['x','y','z'] 'z'

dev.stephendiehl.com/hask/#(1) Stephen Diehl (@smdiehl ) Since I wrote these slides for a little user group talk I gave two years ago they have become a surprisingly popular reference. I decided to actually turn them into a proper skimmable reference for intermediate level Haskell topics that don't necessarily have great coverage or that tend be somewhat opaque as to where to get going, and then aggregate a bunch of the best external resources for diving into those subjects with more depth. Hopefully it still captures the "no bullshit brain dump" style that seemed to be liked. The source for all snippets is available here. If there are any errors or you think of a more illustrative example feel free to submit a pull request.

VsHaskell See also [LanguageComparisons]. Haskell Haskell is a modern functional language (like lisp). Setting an Application's Entry Point (The Java™ Tutorials > Deployment > Packaging Programs in JAR Files) If you have an application bundled in a JAR file, you need some way to indicate which class within the JAR file is your application's entry point. You provide this information with the Main-Class header in the manifest, which has the general form: The value classname is the name of the class that is your application's entry point. » GPS to HTML Report with Haskell Aug-15th-2012 Ever wanted a full DBLP database file containing all publication information for a given author (presumably yourself)? DBLP is a computer science bibliography database. Journals tracked on this site include VLDB, the IEEE Transactions, the ACM Transactions, and conference data. I’ve put together a dblp2bibtex utility, written in Haskell, that enables authors to download all publication data from DBLP, for a given author.

Making A Website With Haskell - adit.io This is a guide to building and deploying a simple website using Haskell. We will use: Scotty for the backend Blaze-html for templating and Persistent for the ORM. Scotty is Haskell’s version of Sinatra. The Downfall of Imperative Programming Imperative programming is in my bloodstream. I've been a C++ programmer for most of my life. I wrote a book about C++. I helped Andrei and Walter design an imperative language D. If I dabbled in functional programming, it was mostly to make my imperative programs better.

Why computers have two zeros: +0 and -0 Here’s a strange detail of floating point arithmetic: computers have two versions of 0: positive zero and negative zero. Most of the time the distinction between +0 and -0 doesn’t matter, but once in a while signed versions of zero come in handy. If a positive quantity underflows to zero, it becomes +0. And if a negative quantity underflows to zero, it becomes -0. You could think of +0 (respectively, -0) as the bit pattern for a positive (negative) number too small to represent. The IEEE floating point standard says 1/+0 should be +infinity and 1/-0 should be -infinity.

Related:  CodinghaskellFree Programming eBookschrisbert