News aggregator - Wed, 01/22/2014 - 9:15pm
Categories: Offsite Blogs - Wed, 01/22/2014 - 9:15pm
Categories: Offsite Blogs

Haskell goes mainstream - Strangers on a plane

Haskell on Reddit - Wed, 01/22/2014 - 7:50pm

As I was sitting on a plane, reading a downloaded copy of the Extensible Effects paper, I see the fellow in my row, across the aisle, pull out a printed monad tutorial and a category theory textbook.

What are the odds of that, for a niche language?

submitted by cultic_raider
[link] [16 comments]
Categories: Incoming News

ANN: ZuriHac 2014

haskell-cafe - Wed, 01/22/2014 - 6:49pm
Dear Haskellers, After a very successful ZuriHac 2013 we are delighted to announce ZuriHac 2014! When: Friday 6 June 2014 - Sunday 8 June 2014 Where: Erudify offices, Zurich, Switzerland ZuriHac is an international Haskell hackathon: a grassroots, collaborative coding festival with a simple focus, to build and improve Haskell libraries, tools, and infrastructure. This is a great opportunity to meet your fellow Haskellers in real life, find new contributors for your project, improve existing libraries and tools, or even start new ones! Registration ------------ If you wish to attend, please register by filling in this form: Please note that we have a limited number of places
Categories: Offsite Discussion

Replacement of XServer system with an Haskell alternative.

Haskell on Reddit - Wed, 01/22/2014 - 6:26pm

I have just started looking into haskell and looked a little on the xmonad project and was thinking that i might be time to replace the old spaghetti code.

What I have been thinking is to use the graphics libraries in haskell to create a user interface for the control of the operating system. I think it would be a nice way to go since even a raspberry pi have a decent gpu.

So use xmonad as an example of use of the system.

submitted by Nicolaum
[link] [8 comments]
Categories: Incoming News

Cabal version constraint seems to be ignored.

haskell-cafe - Wed, 01/22/2014 - 2:43pm
Hi, I have two versions of Cabal, both are visible: $ ghc-pkg expose Cabal-1.16.0 $ ghc-pkg expose Cabal- I clone and build my package. Since I have GHC 7.6.3 it uses Cabal-1.16.0 (as specified in ghc-imported-from.cabal): $ git clone $ cd ghc-imported-from $ cabal install It looks like Cabal-1.16.0 was chosen, as expected: $ grep Cabal dist/build/autogen/cabal_macros.h /* DO NOT EDIT: This file is automatically generated by Cabal */ /* package Cabal-1.16.0 */ #define VERSION_Cabal "1.16.0" #define MIN_VERSION_Cabal(major1,major2,minor) (\ But my program doesn't run: $ ghc-imported-from src/Main.hs Main getArgs 11 11 --ghc-options --ghc-pkg-options GhcOptions [] GhcPkgOptions [] Language/Haskell/GhcImportedFrom.hs:132:54: Couldn't match expected type `Distribution.PackageDescription.BuildInfo' with actual type `Cabal-1.16.0:Distribution.PackageDescription.BuildInfo' In the fourth argument of `getGHCOptions', namely
Categories: Offsite Discussion

language-puppet: Prisms and lenses in language-puppet

Planet Haskell - Wed, 01/22/2014 - 1:08pm

I added a few prisms and a lens to language-puppet. I use it mainly for manipulating manifest files. Here is an example, with some ‘type annotation’ that should give an idea on how this work :

<figure class="code"> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 import Control.Lens import Puppet.Lens import Control.Lens.Aeson import qualified Data.Text as T import qualified Data.Text.IO as T content :: T.Text content = "node 'test' { $x = 12 }" main :: IO () main = T.putStrLn $ content -- T.Text & _PParse -- [Vector Statement] . traverse -- [Statement] . _Statements -- [[Statement]] . traverse -- [Statement] . _VariableAssignment -- [(T.Text, Expression, PPosition)] . _2 -- [Expression] . _PResolveExpression -- [PValue] . _Integer -- [Integer] +~ 2 </figure>

The result of this program is :

<figure class="code"> 1 2 3 4 node "test" { $x = "14" } </figure>

This is much nicer than the many ad-hoc transformations I have written.

Categories: Offsite Blogs

Haddock Constructor parameter documentation withoutrecord syntax

haskell-cafe - Wed, 01/22/2014 - 11:42am
Hi, Does anybody know how to document parameters of a constructor in haddock. The following code gives parse error on the second parameter while generating haddock documentation. ``` data Foo = Foo Int -- ^ First Int -- ^ Second ``` -Satvik _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe< at >
Categories: Offsite Discussion

ZuriHac 2014

Haskell on Reddit - Wed, 01/22/2014 - 10:52am
Categories: Incoming News