Stream

Join this community to post or comment
 
Could not stand Stack any more, so I made a wrapper for nix-shell and cabal-install:

https://github.com/jyp/styx/blob/master/README.org

It's a 200-line script which does 100% of what I need in Stack. Furthermore it does not require recompiling over and over (thanks to nix), and it frees me from Stackage.

Hope it's useful to more than me.





11
Herbert Valerio Riedel's profile photoJean-Philippe Bernardy's profile photo
8 comments
 
+Herbert Valerio Riedel I was not aware of it, but from the manual it looks largely disjoint from the link you gave. Should +Thomas Tuegel feel like integrating features similar to those I implemented in Styx I'll be glad to help.

Thanks for the heads up!
Add a comment...

Greg Steuck

Announcement  - 
 
Happy to announce we just released the TensorFlow Haskell code we've been working on for a while.

https://github.com/tensorflow/haskell

We'd love to have people take it for a spin and let us know which parts need the most work.
41
4
Add a comment...

Mark Watson

Discussion  - 
 
Nice! PGM in Haskell: http://mlg.eng.cam.ac.uk/pub/pdf/SciGhaGor15.pdf and https://github.com/adscib/monad-bayes/tree/master/test

I have experimented with the Scheme based Church language for Probabilistic Graph Models. A framework for using Haskell might be even nicer.
3
Add a comment...
 
Hey, a little question: do I have to give credits to the Haskell Platform, if I use it in a project (releases in binary form), or do I have to do anything, when using it?

Thank you in advance
1
ein mensch (MasterOfShortCode)'s profile photoAdam Sjøgren's profile photo
3 comments
 
The second clause in BSD-3 is:

"* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution."

See https://en.wikipedia.org/wiki/BSD_licenses#3-clause_license_.28.22Revised_BSD_License.22.2C_.22New_BSD_License.22.2C_or_.22Modified_BSD_License.22.29 for more.
Add a comment...

Sean Leather

Discussion  - 
 
 
“For building server-side software, Haskell might be the closest thing to a secret weapon you’ll find today.”
— Carl Baatz
In 2012 I co-founded Better1, a startup building a new type of enterprise e-learning platform. Our goal was to make it faster and cheaper for large companies to develop, deliver, and analyse adaptive, cross-platform, multi-language, online courses. From day one, we decided to use Haskell as our ...
29
6
Add a comment...

Ramin Honary

Discussion  - 
 
 
Speaking from experience, I can say for myself that becoming more than just a novice programmer for the Haskell programming language has improved my ability to write code in other programming languages. It has given me a deeper understanding of computer science, which is essential for improving my skills as a software engineer.

When you are forced by a language (like Haskell) to separate pure code from "side-effectful" code as a completely separate function type (the "IO" type or the "State" type), when you are forced to think of algorithms as morphisms/transformations over data types, you start to think of all programming problems in this way, even when you use languages that do not force you to solve problems with these restrictions. And that helps you avoid many of the common mistakes that programmers make.
My first non-trivial program I was paid to write, was as an summer intern my sophomore year of college. It was a Zephyr client built using…
18
2
Add a comment...

Jan Žegklitz

Help and Advice  - 
 
Dear Haskell friends, could you help me?
2
Add a comment...
 
Hello everyone I'm having some trouble understanding how ghc package-systems work.
Could anyone give me some help?
Thanks in advance

http://stackoverflow.com/q/38047415/936505
1
Add a comment...

金俊杰

Discussion  - 
 
in the course of Traversable.hs in
https://github.com/NICTA/course
how can i understand this? I'v stayed here for a long time
instance Traversable List where
traverse ::
Applicative f =>
(a -> f b)
-> List a
-> f (List b)
traverse f =
foldRight (\a b -> (:.) <$> f a <*> b) (pure Nil)

course - Functional Programming Course
2
Bartosz Milewski's profile photo金俊杰's profile photo
4 comments
 
+Bartosz Milewski yes, thank you i can understand it now
Add a comment...

Carl Petersen

Help and Advice  - 
 
Hello,

I need a bit of assistance. I've written the following instance declarations, but I'm getting an error on the FromJSON instance:

data BBuf = BBuf
{
body :: ByteString
}

instance ToJSON BBuf where
toJSON r = object [ "body" .= A.encode (body r)
]

instance FromJSON BBuf where
parseJSON = withObject "BBuf" $ \obj ->
BBuf <$> ((obj .: "body") >>= A.decode)

On the A.decode (A is Data.Aeson) I'm getting the following error:

Couldn't match type ‘Maybe’ with ‘Parser’
Expected type: L.ByteString -> Parser ByteString
Actual type: L.ByteString -> Maybe ByteString
In the second argument of ‘(>>=)’, namely ‘A.decode’
In the second argument of ‘(<$>)’, namely
‘((obj .: "body") >>= A.decode)

Any assistance would be greatly appreciated,

Carl
1
Carl Petersen's profile photoDanila Petrov's profile photo
5 comments
 
Welcome
Add a comment...

Sajith T S

Discussion  - 
 
Sounds like folks had fun!
 
Googler Gleb Peregud reports on ZuriHac 2016, a Haskell hackathon that was hosted at Google Zurich. Check out his blog post for links to fascinating presentations on the functional programming language.
11
Add a comment...

Yves Parrays

Discussion  - 
 
Hi! I'm trying to use pipes to do this:
open file 1, get first line which is another file name.
Use it to open file 2, then for `zip (each line remaining in file 1) (each line in file 2)` sum the two lines.
Zipping two files known statically is OK, but I'm sort of at a loss regarding how to open file 2 from "within" the Pipe.

I asked it on SO with a code sample:
http://stackoverflow.com/questions/39125627/pipes-open-a-file-according-to-content-of-another
1
epsi nurwijayadi's profile photo
 
I'm about to have similar piping issue.

Thank you for bringing this topic.

I'm a n00b.
Add a comment...

Mark Watson

Haskell Platform  - 
 
Wow! The Intero Haskell Emacs stack based development environment is great! https://commercialhaskell.github.io/intero/ I do a lot of my development on a leased large memory server, so I am on the lookout for Emacs support for Haskell that works well in a SSH shell. Thanks to the developers who worked on this!
Install package. Use Emacs's built in package manager. Add the following to your .emacs : ;; If you don't have MELPA in your package archives: (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) (package-initialize) (package-refresh-contents) ;; Install ...
13
4
Add a comment...

Camilo Suñer

Discussion  - 
 
Hey there. I've redecently discovered Haskell, but I've yet to find a course in my city. Do guys have any recomendations regarding online guides/courses?
2
1
Mark Wotton's profile photoTanneguy Dulong's profile photo
9 comments
 
No hesitation : haskellbook.com - Haskell Programming is what you need. I have read the others and while they are good, haskellbook will get you farther and faster. 
Add a comment...

Sean Leather

Discussion  - 
 
It was drawn to my attention that there is an active Reddit thread about the future of dependent types in Haskell. (Thanks for the heads up, @thomie!) Instead of writing a long response inline in R…
5
2
Sean Leather's profile photoOleg Nizhnik's profile photo
3 comments
 
This site can’t be reached
Add a comment...
 
I have a problem in Haskell :(

Can you help me?
1
ein mensch (MasterOfShortCode)'s profile photoBen Samuel's profile photo
7 comments
 
Also, in particular with TLS, use a separate library. When, not if, when there are exploits your consumers will need to be able to update TLS without having to wait on you. (This comes from personal experience being paged by our security folks to respond to zero-days.)
Add a comment...

Desonte Jolivet

Help and Advice  - 
 
Im reading Learn You Haskell for Greater Good, andI would like to define a list of Fibonacci numbers, but sadly my code isn't working.

http://hastebin.com/hatolavime.erlang_repl

I'm trying to use the list comprehension to create an infinite list of fib numbers can anyone give me a little advice and point me in the right direction.
2
Bart Massey's profile photoJoshua Underwood's profile photo
8 comments
 
Don't shoe-horn a recursion problem into a list comprehension. List comprehensions are good for defining sets that have "membership", and recursive definitions are good for "recursively enumerate" sets. Fibonacci numbers defined recursively. 
Add a comment...
 
have written a scripting language in haskell!

haskell is very good for writing those things

ac1235.github.io
AntLang Programming Language. Functional Programming Made Simple. server:8000 httprun {"Hello AntLang!"}. ↣ Learn More.
9
2
Add a comment...