dolio 2017-03-03 12:45:54
I don't think it's significantly harder to support both indentation and braces than it is to support just indentation.
arkasis 2017-03-03 12:46:14
hello, I'm new to haskell. How can I post a formated snippet?
hpc 2017-03-03 12:46:31
@lpaste
lambdabot 2017-03-03 12:46:31
Haskell pastebin: http://lpaste.net/
arkasis 2017-03-03 12:47:28
Here is my code;
arkasis 2017-03-03 12:47:30
data Bit = True | False newtype Byte = (Bit, Bit) main = putStrLn "hi!"
monochrom 2017-03-03 12:47:52
You will have name clash because of True and False.
arkasis 2017-03-03 12:48:30
http://lpaste.net/353195
monochrom 2017-03-03 12:48:45
newtype is wrongly used.
arkasis 2017-03-03 12:49:04
how is the correct way?
monochrom 2017-03-03 12:49:21
Need a data constructor.
monochrom 2017-03-03 12:49:34
Or else do not use newtype.
monochrom 2017-03-03 12:49:53
It is ambiguous whether you intend newtype or not.
arkasis 2017-03-03 12:50:38
I tried type instead and worked, thanks
monochrom 2017-03-03 12:50:41
But read up very seriously on "data", "newtype", and "type". Choose the one you really mean.
monochrom 2017-03-03 12:51:03
(Do not guess from "meaningful" names.)
jle` 2017-03-03 13:03:26
1;0c/b 10
jle` 2017-03-03 13:04:24
i wonder why my terminal emulator or ssh client throws these random characters onto the screen
baasvik 2017-03-03 13:11:17
is there a way to just fetch dependencies with cabal and *not* build them?
ezyang 2017-03-03 13:11:47
it's either cabal get or cabal fetch
baasvik 2017-03-03 13:11:56
cabal install (from inside a directory with a sandbox in it) and (cabal install --dry-run) seem to have different behavior
baasvik 2017-03-03 13:12:24
okay let me put a shell script in the pastebin and hopefully get some guidance on what I'm doing wrong
manek 2017-03-03 13:19:19
hello guys! :) Is it possible to tell stack to copy-bins of dependencies? I've got a package that needs graphmod which is shipped as executable only. I want to add it to stack config and copy its executable to bin folder. Unfortunetally `-copy-bins` copies only my lockal package bin
mbw 2017-03-03 13:22:27
Hello everyone. Can you interface with a C routine that expects a pointer to over-aligned memory? Say it is something computationally expensive that uses vector instructions. I don't have a concrete example in mind, I'm just curious. My google-fu didn't come up with anything, either.
mbw 2017-03-03 13:23:49
I presume I could just interface to aligned_alloc or something, and then call the C function?
ezyang 2017-03-03 13:24:09
mbw: Well, if you're passing Ptrs around, you can make them however you want
geekosaur 2017-03-03 13:26:07
mbw, hsc2hs allows you to specify alignment in various ways. for a Ptr, iirc it's part of the Storable instance for the target type