Search Haskell Channel Logs

Saturday, February 18, 2017

#haskell channel featuring vctr, ClaudiusMaximus, sphinxo, lyxia, Welkin, jmnoz, and 6 others.

sphinxo 2017-02-18 03:49:15
What is the Wrap constructor from this tut? https://mainisusuallyafunction.blogspot.co.uk/2011/09/lambda-to-pi.html
lyxia 2017-02-18 03:49:31
newtype MuChan = Wrap (Chan MuChan)
vctr 2017-02-18 03:56:27
is there a good library to do pretty auto-completion hints like what fish shell does?
vctr 2017-02-18 03:56:50
but generalized to non-shell applications?
jmnoz 2017-02-18 03:57:26
is there a way to launch sub processes which can get oom killed without the main process getting killed (complete newbie question)?
cocreature 2017-02-18 04:06:03
jmnoz: not quite, but you can use the allocation limit (https://hackage.haskell.org/package/base-4.9.1.0/docs/System-Mem.html#v:enableAllocationLimit). However, allocations do not reflect the current memory usage but instead the total memory usage. so they are more a bound on the amount of work a thread can do in total
jmnoz 2017-02-18 04:06:58
cocreature: thanks!
AWizzArd 2017-02-18 04:12:44
In my .cabal file I've added the dependency 'list-extras', and now stack list-dependencies shows me list-extras
AWizzArd 2017-02-18 04:16:03
Any idea how this can be fixed?
sphinxo 2017-02-18 04:17:12
What is the Wrap constructor from this tut? https://mainisusuallyafunction.blogspot.co.uk/2011/09/lambda-to-pi.html
EvanR 2017-02-18 04:32:33
sphinxo: its a newtype wrapper around a Chan of itself
EvanR 2017-02-18 04:32:46
since you cant do Chan (Chan (Chan (...
EvanR 2017-02-18 04:32:56
it would be an infinite type
stevenxl 2017-02-18 04:37:33
Hi folks. I'm having a bit of a tough time defining an expression.
stevenxl 2017-02-18 04:37:48
Are atomic values such as 1 valid expressions?
stevenxl 2017-02-18 04:37:55
Would a structured value be a valid expression?
Welkin 2017-02-18 04:39:47
stevenxl: example code?
stevenxl 2017-02-18 04:40:31
Welkin - Hi. There's no code to show. Sorry, I used defining poorly. I meant to say I am having a tough time understanding what an expression is.
Welkin 2017-02-18 04:40:53
everything is an expression
cocreature 2017-02-18 04:42:22
stevenxl: the haskell standard which defines this is relatively easy to understand in that regard https://www.haskell.org/onlinereport/haskell2010/haskellch3.html#x8-220003
stevenxl 2017-02-18 04:43:45
cocreature: thanks - i'll take a look
stevenxl 2017-02-18 04:43:48
Welkin: thank you!
cocreature 2017-02-18 04:44:42
"everything is an expression" is not quite true, but the things that are not are usually pretty obvious
maksim__ 2017-02-18 05:18:12
i'm trying to debug a package in ghci
maksim__ 2017-02-18 05:18:22
executing :main gives me gcc: error: /tmp/ghc3784_0/ghc_318.o: No such file or directory
maksim__ 2017-02-18 05:18:22
phase `Linker' failed (exitcode = 1)
pavonia 2017-02-18 05:25:45
maksim__: Did you delete temp files while GHCi was still running?
maksim__ 2017-02-18 05:25:57
pavonia, no
maksim__ 2017-02-18 05:26:23
unless suspend deletes temp files?
pavonia 2017-02-18 05:26:32
Does that happen for all programs or just a certain one?
ClaudiusMaximus 2017-02-18 05:27:00
is /tmp full?
maksim__ 2017-02-18 05:27:16
pavonia, i have only one program that i've been working on on this machine
maksim__ 2017-02-18 05:27:21
ClaudiusMaximus, no
cocreature 2017-02-18 05:28:49
maksim__: are you using plain ghci or "stack ghci" or "cabal repl"?
maksim__ 2017-02-18 05:29:01
stacak
cocreature 2017-02-18 05:29:56
I think I've seen that with stack before but I never figured out what was causing it. usually it disappeared after restarting "stack ghci" or "stack clean"ing