Stream

Join this community to post or comment

Sean Leather

Announcement  - 
 
Simon's main research interest is in functional programming languages, their implementation, and their application. He was a key contributor to the design of the now-standard functional language Haskell, and is the lead designer of the widely-used Glasgow Haskell Compiler (GHC).
18
1
Eugene Crosser's profile photoRussel Winder's profile photo
 
More than deserved! Congratulations to +Simon Peyton Jones!
Add a comment...

Thomas Løcke

Help and Advice  - 
 
You guys taught me a lot a few weeks ago, when you hammered my rather feeble attempt at Haskell programming into shape.

https://github.com/ThomasLocke/passgen

Now that the program is actually doing what it is supposed to do, and not looking awful while doing it, I've started thinking about tests.

How would I go about testing this program?

How would I structure the source with tests added?

Should I use something like Quickcheck, or?

Is it even possible to test a program like this in a sensible way, seeing that I'm doing IO all over the place?
passgen - Simple password generator done in Haskell
1
kola Mani's profile photoScott Sedgwick's profile photo
8 comments
 
Use the filter function from Data.List, and make the predicate "not equal to the one to remove".  This will, of course, remove all elements from the list that match the argument.
Add a comment...

John Cook

Discussion  - 
 
Brent Yorgey course notes for Haskell
haskell-course - Introductory Haskell course materials (originally CIS 194 @ UPenn)
7
3
Jorge Devoto's profile photoCons Bulaquena's profile photo
Add a comment...
 
 
When battle-tested programmers give candid takes on Haskell, arrogant unqualified beginners descend on them.
4
3
Lyndon Maydwell's profile photoWalter Schulze's profile photoАлексей Пастухов (palik)'s profile photoMalar Kannan's profile photo
16 comments
 
+Alan Davidson Have a look at the blog, there are many such posts, there's a whole site, there are a bunch of curated images, etc.

I agree that it's not a significant effort compared to a fully reasoned criticism, but it's a hell of a lot more effort than most trolling.
Add a comment...

Thomas Løcke

Help and Advice  - 
 
Haskell newbie here!

I could use some feedback on a very small program I've written:

https://github.com/ThomasLocke/passgen/blob/master/src/Main.hs

Yea, not exactly advanced stuff there, but since my aging brain is already mightily challenged by Haskell, it felt like  a good place to start.

I have some problems with my program:

1. I feel like I'm having IO stuff all over the place. Can more of my functions be made pure?

2. Two outputAndExit functions. ARGH! Try as I might, I cannot figure out how to fold those two down to one. I suspect this is closely linked to issue 1.

3. I don't enjoy calling length charPool over and over in the randChar function, but I also don't feel like having the length set as a potentially wrong constant. What can I do?

Note that I'm not interested in creating cryptographically safe passwords. This is a toy program, with the sole intention of teaching myself to write Haskell. You gotta start somewhere.

Any and all advice/help is much appreciated. :o)
1
Thomas Løcke's profile photoPaul Brauner's profile photo
15 comments
 
+Thomas Løcke​ exactly like that!
Add a comment...

Ivan Miljenovic

Discussion  - 
 
So Packt has asked me to write a "Haskell Cookbook"; anyone else they've spammed with this?
5
Dino Morelli's profile photoBrent Yorgey's profile photo
9 comments
 
Yeah, I just got this email too.
Add a comment...
 
 
Q: What do you get when you set up a test to compare which language is faster, and put it on GitHub
A: Tons of pull requests
skynet - Skynet 1M threads microbenchmark
8
3
Matthew Calef's profile photoJack Miles's profile photo
Add a comment...

Sean Leather

Discussion  - 
 
Why did Alonzo Church use lambda for function abstraction?
7
3
Alan Davidson's profile photoWilliam Uther's profile photoClaudia Doppioslash's profile photosuhorng Y's profile photo
 
This sounds like the set-up to a joke. Never mind the facts of the matter; who can supply a good punchline?
Add a comment...

Sean Leather

Announcement  - 
 
A new illustrated beginners' tutorial
Welcome to the totally awesome Happy Learn Haskell Tutorial series! It's an easy gradual method to learn functional programming together. It's totally free for you to read online, because everyone should be able to learn Haskell! We start from the beginning, so you don't need to know any ...
8
1
Decebal Popa's profile photo
Add a comment...
 
A monad for composing HTML templates and HTML. It is an incredibly but justifiably powerful monad. Who knew that would be possible!
6
3
Christopher King's profile photochangsheng liu's profile photo
Add a comment...

Sean Leather

Announcement  - 
 
 
Since this hasn't been announced very broadly, I'll point out that "Summer of Haskell" is now accepting student applications.

http://summer.haskell.org

Summer of Haskell is a program patterned after Google Summer of Code, which unfortunately did not allocate any slots for Haskell this year.  Instead, the Haskell.org committee is funding students based on donations.  Application deadline is May 6.  More details at the link.

By the way, one project slot this year is set aside for CodeWorld.  If you are a student and might be interested in spending this summer developing CodeWorld tools on an approximately full-time basis and be paid a stipend for it, then please submit a proposal!
Summer of Haskell 2016. The Summer of Haskell is an effort by haskell.org to reach out to students and encourage them to contribute to the Haskell community with the aid of experienced mentors. This program is open to college students, 18 or older, in most countries.
7
1
kola Mani's profile photoValeria Pennella's profile photoYuji Yamamoto's profile photo
2 comments
 
is just something like:

remo elem lista = filter (/= elem) lista

You need to generate a new list without the element. Hope that helps!.
Add a comment...

Ramin Honary

Discussion  - 
 
As much as I love the Haskell programming language, I have to admit, there are times when it seems to have been invented specifically  for the task of obfusticating code. Case in point: here is some of my own code for a project I have been working on. The "query" function:
https://github.com/RaminHAL9001/Dao/blob/master/src/Dao/Rule.hs#L512

That code "elegantly" filters a list of tuples based on whether the result in the first element of the tuple is a success or failure. Tuples containing failures are dropped, tuples containing successes are unwrapped from the "Either" data type, re-paired with the second element of the tuple, and fed into a list.

But that should be obvious to anyone if you would just read the code! Right? (sarcasm)

Yes, I know, I should just explode that function into a few more lines of code to make it more readable, maybe use do notation and make the unwrapping and re-wrapping steps plain to see on each line of code. But I have to be honest, it much more emotionally satisfying to be able to make it all fit into a single line of code.
 
I really need this!
19
2
Ramin Honary's profile photoNeil Mitchell's profile photoHarald Bögeholz's profile photoKarl Leaning's profile photo
9 comments
 
+Ramin Honary - very happy to have the general Haskell in the world become a bit more readable, please use as you wish :)
Add a comment...

Kasper Brohus Allerslev

Help and Advice  - 
 
Hi

I've been coding in Haskell for 4 or 5 years, but never for anything serious. I intend to change that, and as such I have decided to make a small application.

The thing is, I have no idea how to structure one, and it seems that resources for application development in Haskell are scarce.

I know how to use Stack and Glade, but going from that and to making an actual application seems pretty daunting.

So far, I have only found articles / tutorials focusing on specifics, like making a GUI, how to make unit tests.

Are there any good tutorials that go through creating an entire application from scratch?
1
Kasper Brohus Allerslev's profile photoChristopher King's profile photo
15 comments
 
+Kasper Brohus Allerslev I believe that is a thing, although I'm not sure where. I'm sure reddit.com/r/Haskell would know.
Add a comment...

Prashant Bhardwaj

Help and Advice  - 
 
hey guys im new please put me some light at future of haskell and what i can do with it and some good thing made with it 
1
Jim Stuttard's profile photoAniket Deshpande's profile photo
3 comments
 
This is all you will ever need!!!
https://github.com/bitemyapp/learnhaskell
Add a comment...
62
36
Yuriy “Cheese” Syrovetskiy's profile photoAlexander Letov's profile photoDarren Grant's profile photoToure Dunnon's profile photo
5 comments
 
+kola Mani Stack Overflow is probably good for that comment (or even a separate G+ post). Feel free to link back to anything you post.
Add a comment...

David Virebayre

Discussion  - 
 
I'm installing a haskell dev environment on Windows for the first time. So far it feels straightforward thanks to stack.
8
David Virebayre's profile photo
2 comments
 
The fact that it's working well means I will be able to teach Haskell to a new hire that will eventually become a manager. If all goes well, our haskell use may grow from marginal to one of the first choices.
Add a comment...
 
Here's a simple sed command (comes preinstalled on most linuxes) to format a literate haskell post for markdown:

sed 's/^>/ >/' pad.lhs > pad.md

Where `pad.lhs` is the literate file, and `pad.md` is where you want markdown to go.
1
Eugene Crosser's profile photoChristopher King's profile photo
2 comments
 
+Eugene Crosser that would be pretty cool. I should propose that somewhere.
Add a comment...