lyxia 2017-02-19 01:45:27
pattern INADDR_ANY <- ((== iNADDR_ANY) -> True) where INADDR_ANY = iNADDR_ANY
delYsid 2017-02-19 01:46:55
What CLI argument parsing library can you suggest?
Bish 2017-02-19 01:47:01
is that kinda like a macro?
Bish 2017-02-19 01:47:09
on what level that will be done?
lyxia 2017-02-19 01:47:12
delYsid: I highly recommend optparse-applicative
suppi 2017-02-19 01:47:36
^
osa1 2017-02-19 01:48:22
optparse-applicative
lyxia 2017-02-19 01:49:29
Bish: it's a construct within the language to name patterns like we name expressions with let.
lyxia 2017-02-19 01:49:54
it's only toplevel though
delYsid 2017-02-19 01:55:24
lyxia: looks nice, thanks
screggs 2017-02-19 02:15:27
retu.348
bollu 2017-02-19 02:41:01
if I have a sum type S = A | B | C, is there a way to "or" two prisms? (_A <||> _B) or something
chrisIrcTheFirst 2017-02-19 02:42:17
Hello! :) is there a way to surround code on here? `let x = "test"` or something?
lyxia 2017-02-19 02:42:23
bollu: failing does something along those lines
bollu 2017-02-19 02:42:30
chrisdotcode: what do you mean by surround?
bollu 2017-02-19 02:42:38
> let x = "test" in x ++ x
lambdabot 2017-02-19 02:42:40
"testtest"
bollu 2017-02-19 02:42:45
chrisIrcTheFirst: ^
bollu 2017-02-19 02:43:01
lyxia: thanks, I shall take a look
bollu 2017-02-19 02:43:07
lyxia: lens is huge :(
bollu 2017-02-19 02:43:15
lyxia: I need a way to know where to find what I need
lyxia 2017-02-19 02:43:35
yeah I'm not sure what's a good way...
chrisIrcTheFirst 2017-02-19 02:43:56
> respondHtml :: ConvertibleStrings a Data.Text.Internal.Lazy.Text => a -> ActionM ()
chrisIrcTheFirst 2017-02-19 02:43:56
respondHtml = html . convertString
lambdabot 2017-02-19 02:43:59
error:
lambdabot 2017-02-19 02:43:59
Not in scope: type constructor or class 'ConvertibleStrings'error:
lambdabot 2017-02-19 02:43:59
Not in scope:
lyxia 2017-02-19 02:44:11
I'm just starting to remember things from having gone through the whole library tens of times to answer this kind of question
osa1 2017-02-19 02:44:31
anyone know how to fix the overlapping instance problem here http://lpaste.net/352712 I can't enable the last line, GHC complains, saying that two instance declarations overlap
chrisIrcTheFirst 2017-02-19 02:44:36
Haha, well anyway I've got that function and it's giving me an error of: Non type-variable argument
chrisIrcTheFirst 2017-02-19 02:44:36
in the constraint: ConvertibleStrings
chrisIrcTheFirst 2017-02-19 02:44:36
a Data.Text.Internal.Lazy.Text
bollu 2017-02-19 02:45:05
lyxia: in terms of "real life use" going through lens?