Search Haskell Channel Logs

Monday, February 6, 2017

#haskell channel featuring cocreature, sm, c_wraith, reactormonk, lyxia, jophish,

sm 2017-02-05 22:48:03
regex-tdfa++
halogenandtoast 2017-02-05 22:48:05
geekosaur: is it possible to do search and replace with Text.Regex.TDFA?
halogenandtoast 2017-02-05 22:48:16
I was using `subRegex` from Text.Regex
halogenandtoast 2017-02-05 22:48:33
I seems like Text.Regex.TDFA just supplies me with `=~`
halogenandtoast 2017-02-05 22:48:46
s/^I/It/
sm 2017-02-05 22:48:55
replace helpers here: http://hackage.haskell.org/package/hledger-lib-1.1/docs/Hledger-Utils-Regex.html
halogenandtoast 2017-02-05 22:52:07
sm: I'll take a look at that
halogenandtoast 2017-02-05 22:52:40
sm: It works!
sm 2017-02-05 22:54:25
\o/
halogenandtoast 2017-02-05 23:02:16
sm: Thanks again, that was a big help
halogenandtoast 2017-02-05 23:03:33
Excitedly enough, I've almost finished my first actual Yesod project (I pretty much just have to figure out how to deploy it now)
halogenandtoast 2017-02-05 23:04:17
Anyone have recommendations for deploying a haskell app?
halogenandtoast 2017-02-05 23:04:34
thinking of trying: https://haskellonheroku.com/
sm 2017-02-05 23:06:39
nice halogenandtoast
sm 2017-02-05 23:06:59
I use a vps
liste 2017-02-05 23:13:10
halogenandtoast: halcyon helps with deployment, that's what haskellonheroku uses
halogenandtoast 2017-02-05 23:16:16
liste: thanks, seems to have failed me.
halogenandtoast 2017-02-05 23:17:56
or I guess I have no idea how to use it
sm 2017-02-05 23:24:14
it is not much used, I would have been surprised
sm 2017-02-05 23:26:58
maybe #yesod has some more deployment options
reactormonk 2017-02-05 23:30:05
Could someone help me with the syntax error on `in` here? https://gist.github.com/fe1c5a26945d42fccb4754736bcaaaee
jophish 2017-02-05 23:32:04
joeyh: If I wrote some modifications to concurrent-output, where can I send them?
liste 2017-02-05 23:33:16
halogenandtoast: nixos+nixops is also an interesting option
liste 2017-02-05 23:33:31
halogenandtoast: it's a lot to learn though
lyxia 2017-02-05 23:34:01
reactormonk: let is not correctly aligned
halogenandtoast 2017-02-05 23:34:43
liste: well you've already scared me away
cocreature 2017-02-05 23:35:05
alignment is a scary topic
reactormonk 2017-02-05 23:35:32
lyxia, ah, thanks
lyxia 2017-02-05 23:35:48
reactormonk: there are 2 spaces in front of line 3, but 4 in front of line 7. Also do blocks use "let" without "in".
reactormonk 2017-02-05 23:36:56
lyxia, what do you mean with the "let" without "in"?
cocreature 2017-02-05 23:37:29
reactormonk: you can put "let var = val" on any line of a do block
cocreature 2017-02-05 23:37:44
and after that line "var" will be bound to "val"
reactormonk 2017-02-05 23:39:30
cocreature, do I have to repeat "let"?
lyxia 2017-02-05 23:39:32
actually, you can use "let ... in", but it will count as a single statement.
cocreature 2017-02-05 23:40:38
reactormonk: no http://lpaste.net/352130 works too
merijn 2017-02-05 23:41:16
lyxia: I don't like the use of statement as haskell, as a language, doesn't have statements
reactormonk 2017-02-05 23:41:24
cocreature, cool, thanks
jophish 2017-02-05 23:41:29
Is there a function in text which gives me the ByteString which hPutStr would write to the handle?
c_wraith 2017-02-05 23:41:41
merijn: there is that construct that the grammar calls a statement....
merijn 2017-02-05 23:42:15
c_wraith: I'll take this as my incentive to complain to the Haskell Prime committee :)
cocreature 2017-02-05 23:42:17
jophish: if you just want to write to a handle, there is an "hPutStr" function in Data.Text.IO
jophish 2017-02-05 23:42:37
cocreature: I'd like to get the bytestring which would be written to that handle
jophish 2017-02-05 23:42:40
and save it for later
jophish 2017-02-05 23:42:52
This function would look like: Text -> IO ByteString
jophish 2017-02-05 23:43:08
ah, encodeLocale
c_wraith 2017-02-05 23:43:16
merijn: https://www.haskell.org/onlinereport/haskell2010/haskellch10.html#dx17-180060
lyxia 2017-02-05 23:43:47
merijn: how would you call the elements of a do block?
c_wraith 2017-02-05 23:44:04
I didn't realize there was an empty statement in the grammar. Hmm.
merijn 2017-02-05 23:44:51
lyxia: I would call them expressions all the way down