--- Log opened Tue May 19 00:00:47 2009
15:59 < mightybyte> Anyone know why this doesn't compile? http://hpaste.org/fastcgi/hpaste.fcgi/view?id=5050
17:07 < gcollins> try "gen :: (forall a . HTML a => [a] -> Html) -> MyData -> Html
17:09 < gcollins> or maybe just "gen :: (HTML a => [a] -> Html) -> MyData -> Html
17:09 < gcollins> "
17:10 < gcollins> the compiler can't match "String" against "a" because "a" is a type variable associated with "gen"
17:14 < gcollins> this version compiles: http://hpaste.org/fastcgi/hpaste.fcgi/view?id=5050#a5058
17:14 < gcollins> ttyl
18:54 < hydo> Is the accepted solution to the "unsupported socket" problem still to downgrade network?
21:07 < mae_> hydo: your using 0.2.1 right?
21:07 < hydo> I get it in both head and cabal...
21:07 < hydo> heh...
21:07 < mae_> hmm thats strange
21:08 < hydo> I shouldn't be getting it from head?
21:09 < mae_> oh um
21:09 < mae_> that isn't our fault i don't think
21:09 < mae_> your ghc probably wasn't built with ipv6 support
21:09 < hydo> Yea, I don't think so either.
21:09 < hydo> Not sure... it's the bin package from the ghc dist site.
21:09 < mae_> the template haskell basically sees if there is a HostAddress6 Instance
21:09 < mae_> if that is not in existence, that means that your ghc didn't compile with ipv6 support
21:09 < mae_> but yet the system is handing you ipv6 sockets
21:10 < hydo> hehe... well, that's helpful!
21:10 < mae_> um
21:10 < mae_> so try this maybe 1 sec
21:11 < mae_> open up ghci
21:11 < mae_> :m Network.Socket
21:12 < mae_> iN6ADDR_ANY
21:12 < mae_> should get you: (0,0,0,0) if you have ipv6 support
21:12 < hydo> (0,0,0,0)
21:12 < mae_> oh bastard
21:12 < mae_> platform?
21:13 < hydo> one thing though... I downgraded to 6.10.2 from 6.10.3 to mess with the haskell platform
21:13 < hydo> osx
21:13 < mae_> oh wait a min
21:13 < mae_> nm
21:13 < mae_> that would probably work regardless
21:14 < mae_> ok try
21:14 < mae_> :i HostAddress6
21:14 < mae_> (don't forget :m Network.Socket)
21:14 < mae_> and yeah that should work too
21:15 < hydo> GHC.Word.Word32 x 4
21:15 < mae_> ok so now try
21:15 < mae_> :i SockAddrInet6
21:16 < hydo> data SockAddr = ... | SockAddrInet6 PortNumber FlowInfo HostAddress6 ScopeID | ...
21:16 < mae_> ok weird
21:17 < mae_> what version of network
21:17 < hydo> 2.2.1
21:19 < mae_> thats weird man
21:20 < mae_> something is wrong with the template haskell voodoo
21:20 < mae_> oh wait just a darn minute
21:20 < mae_> it might not even be an ipv6 socket
21:20 < mae_> what does it say in your log?
21:20 < mae_> err
21:21 < mae_> bastard, we don't have a "show" for the unsupported socket
21:21 < mae_> can you reproduce this very easily?
21:21 < hydo> excruciatingly easy :)
21:22 < hydo> I'm just trying to run the guestbook example.
21:22 < mae_> ok
21:22 < hydo> well, the stock happstack site
21:22 < mae_> can you go into happstack
21:22 < mae_> the src
21:22 < mae_> into happstack-server
21:22 < hydo> yep...
21:22 < mae_> open up
21:23 < mae_> src/Happstack/Server/HTTP/Socket.hs
21:23 < mae_> line 38
21:23 < mae_> where you see "Unsupported socket"
21:23 < hydo> yep...
21:23 < mae_> make it something like "Unsupported socket (ipv6 supported)"
21:24 < mae_> then on line 48
21:24 < mae_> instead of "Unsupported socket" make it say like "Unsupported socket (ipv6 not built)"
21:24 < mae_> then rebuild, and see which one you get when you reproduce the error
21:27 < hydo> HTTP request failed with: Unsupported socket (No IPV6 support)
21:28 < hydo> brb... kids need attention.
21:29 < mae_> yeah my wife lol
21:30 < mae_> ok so the magic ipv6 template haskell incantation is not workign
21:30 < mae_> working *
21:30 < mae_> thats pretty weird
21:33 < mae_> hydo: yeah that will need to be a workaround for now, acceptLite is really just a workaround, I really need to submit a patch to network
21:34 < mae_> bbl
--- Log closed Wed May 20 00:00:49 2009