qmm 2017-02-08 20:47:51
what is this?
qmm 2017-02-08 20:47:51
type InitHandler a s = a -> Process (InitResult s)
qmm 2017-02-08 20:48:06
a type alias for a function which goes from a to Process (InitResult s)?
qmm 2017-02-08 20:48:35
if so, i didn't realize you could have type aliases for functions
l_zzie 2017-02-08 20:48:59
yep
liste 2017-02-08 20:49:20
qmm: yes, function types are just like any other types
liste 2017-02-08 20:49:29
you can have records of functions, newtypes of functions...
liste 2017-02-08 20:50:07
lists of functions etc
tsahyt 2017-02-08 20:51:18
functions of functions too.
qmm 2017-02-08 20:51:55
love it
qmm 2017-02-08 20:51:57
thanks :)
qmm 2017-02-08 20:53:46
how would this be a valid InitHandler? (\() -> init') -- where init' :: Process (InitResult (BlockingQueue a))
qmm 2017-02-08 20:54:31
seems to be a function which takes a single value and returns some value init' which is defined elsewhere (type signature included)
qmm 2017-02-08 20:54:55
i don't know why \() is used
qmm 2017-02-08 20:55:13
\_ _ -> would have made more sense i think
tsahyt 2017-02-08 20:55:46
probably to indicate in types that the parameter isn't important
Theophane 2017-02-08 20:55:59
strange indeed
quchen 2017-02-08 21:10:49
qmm: »\() -> x« is equivalent to »x«.
lpaste_ 2017-02-08 21:19:55
halogenandtoast pasted "Error.hs" at http://lpaste.net/352266
lpaste_ 2017-02-08 21:20:46
halogenandtoast revised "Error.hs": "Error.hs" at http://lpaste.net/352266
halogenandtoast 2017-02-08 21:20:57
Can someone help me figure out why I'm getting that error?
halogenandtoast 2017-02-08 21:21:47
I'm just trying to make a "simple" http request (but I want to ignore non 200 responses)
pavonia 2017-02-08 21:23:52
What are the types of newManager and defaultManagerSettings?
pavonia 2017-02-08 21:23:58
halogenandtoast: ^
halogenandtoast 2017-02-08 21:24:16
`newManager :: ManagerSettings -> IO Manager`
halogenandtoast 2017-02-08 21:24:27
`defaultManagerSettings :: ManagerSettings`
cocreature 2017-02-08 21:24:28
halogenandtoast: could you show your imports?
lpaste_ 2017-02-08 21:25:24
halogenandtoast revised "Error.hs": "Error.hs" at http://lpaste.net/352266
halogenandtoast 2017-02-08 21:25:31
cocreature: Added
lyxia 2017-02-08 21:25:43
looks like you might be confusing newManager with the one here https://hackage.haskell.org/package/http-conduit-2.2.3/docs/Network-HTTP-Client-Conduit.html#v:newManager
cocreature 2017-02-08 21:25:47
halogenandtoast: newManager in http-conduit has a different type
cocreature 2017-02-08 21:25:52
the same goes for httpLbs
cinimod 2017-02-08 21:26:19
What is wrong with ircbrowse?
quchen 2017-02-08 21:26:36
cinimod: Maintenance or something?
cocreature 2017-02-08 21:27:01
maybe drop chris an email?
cocreature 2017-02-08 21:27:16
(depending on how long it is showing that error)
halogenandtoast 2017-02-08 21:27:27
So basically what you're saying is it's using function from two different modules.
cocreature 2017-02-08 21:27:39
halogenandtoast: no it is only using the functions from http-conduit
halogenandtoast 2017-02-08 21:27:40
Instead of both being from Conduit or both being from Http.Client
cinimod 2017-02-08 21:27:47
cocreature: it's been showing 403 for several days
cocreature 2017-02-08 21:28:01
halogenandtoast: you are just using the functions from http-conduit as if they were the functions from http-client which results in those errors
cocreature 2017-02-08 21:28:20
cinimod: his mail address is on http://chrisdone.com/
cinimod 2017-02-08 21:29:29
quchen, cocreature: thanks
quchen 2017-02-08 21:30:49
cinimod: It's a website by Chris Done, if the error persists we could just ask him.