erisco 2017-02-04 11:47:21
would be so nice if singleton errors were legible
erisco 2017-02-04 11:47:27
instead of being TFHelper_3489463
erisco 2017-02-04 11:48:13
we're getting into error novel territory
biglambda 2017-02-04 11:49:05
How can I generate c header files when I'm using stack?
biglambda 2017-02-04 11:49:27
Or just plain cabal for that matter.
dmj` 2017-02-04 11:56:09
biglambda: not sure you can
biglambda 2017-02-04 11:57:06
Ok, I'm trying to follow tutorials for calling a haskell program from an XCode project and I haven't figured out how to make it work.
biglambda 2017-02-04 11:57:37
This tutorial: https://wiki.haskell.org/GHC/Using_the_FFI#Calling_Haskell_from_C
biglambda 2017-02-04 11:58:04
And this one: https://wiki.haskell.org/Using_Haskell_in_an_Xcode_Cocoa_project
biglambda 2017-02-04 11:58:21
So far no luck.
erisco 2017-02-04 12:15:49
found a fun parsing quirk...
erisco 2017-02-04 12:18:39
you can write | x <- y :: t = m on term guards but not case or multi-way if guards
Profpatsch 2017-02-04 12:18:53
Hm, I wonder how I can get a complete representation of a data type with TypeReps of the fields and the corresponding values?
erisco 2017-02-04 12:18:58
in that case it has to be | x <- (y :: t) = m
erisco 2017-02-04 12:19:14
well, I mean | x <- (y :: t) -> m but same idea
Profpatsch 2017-02-04 12:19:14
And then maybe serialize that somehow?
Profpatsch 2017-02-04 12:19:59
Or can I get the values for a Data.Data.DataType?
drostie 2017-02-04 12:21:26
That just sounds like Thundercats at that point.
drostie 2017-02-04 12:21:36
"Data, Data, DataType, ho~~~~!"
Profpatsch 2017-02-04 12:30:43
Data is a kind of overloaded module name, yes.
Profpatsch 2017-02-04 12:31:01
Also, it's funny to write "kind of" in #haskell
Welkin 2017-02-04 12:31:20
sort of kind of
Profpatsch 2017-02-04 12:32:56
oooooohhhhh
Profpatsch 2017-02-04 12:33:24
*insert the corresponding gif with black people here*
Welkin 2017-02-04 12:33:30
o.O
Profpatsch 2017-02-04 12:36:17
Welkin: https://m.popkey.co/732f72/RkGmJ.gif
Profpatsch 2017-02-04 12:36:19
found it
Profpatsch 2017-02-04 12:37:46
I think that's the best version here: https://i.imgur.com/YKZA6US.gif
Profpatsch 2017-02-04 12:38:55
I just realized I probably want GHC.Generics for what I'm trying.
Profpatsch 2017-02-04 12:39:13
rekt.gif
erisco 2017-02-04 12:42:02
this stuff is starting to make a wee bit of sense so maybe half a year more and I will be competent
benzrf 2017-02-04 12:42:19
can someone help me figure out why im getting the error "cannot find normal object file 'ModuleName.dyn_o' while linking an interpreted expression" from ihaskell when i try to load source files
benzrf 2017-02-04 12:42:30
er, when i try to evaluate expressions that reference things from source files