mac10688 2017-03-07 12:48:55
So if I want to use ghcjs or purescript with yesod, how would I do this? I would just compile the purescript files and then serve them as static files?
Koterpillar 2017-03-07 12:49:11
mac10688: correct
mac10688 2017-03-07 12:49:30
that's my favorite answer. Thanks Koterpillar
paf31 2017-03-07 12:49:34
mac10688: I haven't used it, but there is https://hackage.haskell.org/package/yesod-purescript
Koterpillar 2017-03-07 12:50:27
paf31: what does that do? "All things that are "YesodPureScript master", are also this other thing, because they nobody knows, because TH."
paf31 2017-03-07 12:52:06
actually it looks like it hasn't been updated in a while
paf31 2017-03-07 12:52:19
just serve static files :)
mac10688 2017-03-07 12:52:52
lol ok thanks paf31
fetter_oml 2017-03-07 13:43:56
would someone know a nice way to build a unity vector (e.g. unityVector 5 3 would be [0,0,1,0,0]) with vector in the sense of the Numeric.LinearAlgebra.Data package?
fetter_oml 2017-03-07 13:45:27
my current approach is building one with generate in the Data.Vector sense (which is ugly enough), then calling Data.Vector.toList on it and throwing the result into Numerical.LinearAlgebra.fromList
fetter_oml 2017-03-07 13:46:51
which is ridiculous.
lyxia 2017-03-07 13:51:13
do you mean the hmatrix package?
lyxia 2017-03-07 13:53:56
fetter_oml: the Vector is actually of the Storable kind if you want to go that way
fetter_oml 2017-03-07 13:55:44
it also says in the description that "1D arrays are storable vectors directly reexported from the vector package.", so I thought it should be easier
lyxia 2017-03-07 13:56:25
Yes, these are the vectors from Data.Vector.Storable
fetter_oml 2017-03-07 14:17:56
so far nothing major, just trying to fiddle with the hnn-package to learn from the mnist-database (http://yann.lecun.com/exdb/mnist/)
fetter_oml 2017-03-07 14:18:41
but as my last line of haskell code is about 3-5 behind, the work is going rather slow :)
fetter_oml 2017-03-07 14:19:20
3-5 years*. also, its quite late, goodnight.
robertkennedy 2017-03-07 14:22:40
:t diff
lambdabot 2017-03-07 14:22:43
error:
lambdabot 2017-03-07 14:22:43
• Variable not in scope: diff
lambdabot 2017-03-07 14:22:43
• Perhaps you meant 'dff' (imported from Data.Graph)
jchia 2017-03-07 14:35:26
I suppose I could put those things I want to hide from export in a nested 'Internal' module.