underlap

@underlap@kbin.social
freemo, to haskell
@freemo@qoto.org avatar

I want to code so bad, but even now as I contemplate a green field project I just cant convince myself its a pragmatic decision...

I really need to find siome way to use this amazingly gun language!

underlap,

@freemo The assessment in a functional programming course I teach is to write a command line interface (CLI) program in Haskell. I won't bore you with the specifics. But if you have a CLI you fancy writing, try using Haskell. (BTW optparse-applicative is your friend for CLIs.)

How Megaparsec combines error information

How is error information combined when parsers are combined? For example, using to combine parsers, I would expect the set of expected characters for an error to be the union of the sets of expected characters from the individual parsers. (I'm finding it hard to pin down the behaviour of or even to find the relevant source...

underlap,

I tried a simple example and it seems to work the way I expected.

underlap,

The source code appears to be in Text/Megaparsec/Internal.hs, although I haven't gotten my head around it yet.

underlap,

I'm Glyn Normington. I dipped into Haskell briefly in about 2011, but recently got a little deeper into it when I taught a second year functional programming module at Winchester University, UK. I'm a retired programmer with 39 years experience and try to pass on some general tips in the module. I came here after recently deleting my Reddit account. (I've been on the Fediverse for a while as fosstodon.org/@underlap.)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • tester
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • ethstaker
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • ngwrru68w68
  • kavyap
  • GTA5RPClips
  • JUstTest
  • cisconetworking
  • InstantRegret
  • khanakhh
  • cubers
  • everett
  • Durango
  • tacticalgear
  • Leos
  • modclub
  • normalnudes
  • provamag3
  • anitta
  • lostlight
  • All magazines