Search Haskell Channel Logs

Wednesday, March 1, 2017

#haskell channel featuring Squarism, michalrus, Forkk, Koterpillar, RasmusWL, lambdabot,

michalrus 2017-03-01 14:05:40
> let 1 = 2 in 3
lambdabot 2017-03-01 14:05:45
3
michalrus 2017-03-01 14:06:02
Could anyone point me to some resources on why the above compiles? (:
Koterpillar 2017-03-01 14:06:17
> let 1 = 2 in 1
lambdabot 2017-03-01 14:06:21
1
michalrus 2017-03-01 14:06:25
Noes. :p
michalrus 2017-03-01 14:06:30
There's something weird going on.
michalrus 2017-03-01 14:06:32
Also:
michalrus 2017-03-01 14:06:38
> let 1 = "blah" in 2
lambdabot 2017-03-01 14:06:41
error:
lambdabot 2017-03-01 14:06:42
• Could not deduce (Num [Char]) arising from the literal '1'
lambdabot 2017-03-01 14:06:42
from the context: Num t
Koterpillar 2017-03-01 14:07:16
> 2 where 1 = 3
lambdabot 2017-03-01 14:07:21
:1:3: error: parse error on input 'where'
Koterpillar 2017-03-01 14:07:40
> let f = 2 where 1 = 3 in f
lambdabot 2017-03-01 14:07:43
2
Squarism 2017-03-01 14:12:38
is there some way to have ghc tell me about pointless imports?
Squarism 2017-03-01 14:12:47
...stuff that isnt used that is
Forkk 2017-03-01 14:13:21
so haskell seems to be freeing all my foreign pointers when they're still in scope
Forkk 2017-03-01 14:13:31
I don't understand how this is possible
RasmusWL 2017-03-01 14:13:40
has the synopsis overview from hoogle been removed?
Forkk 2017-03-01 14:15:10
well I found the problem. had the line `fptr <- newForeignPtr code_free cptr` twice :|
Forkk 2017-03-01 14:15:27
oops