Search Haskell Channel Logs

Tuesday, January 31, 2017

#haskell channel featuring sm, Cale, Welkin, markasoftware, noan, Koterpillar,

noan 2017-01-31 14:47:58
should hoogle be a local dependency, or a global install, as it is a user choice? I assume the later, and then gitignore all project-local hoogle data?
Jello_Raptor 2017-01-31 15:02:26
is there a package where I can find `newtype Fix f = In (f (Fix f))` defined somewhere?
Jello_Raptor 2017-01-31 15:03:00
It's easy enough to add my own, but I'd rather use a standard one somewhere if possible.
Koterpillar 2017-01-31 15:03:59
Jello_Raptor: http://hayoo.fh-wedel.de/?query=Fix -> data-fix?
Jello_Raptor 2017-01-31 15:05:39
huh, I guess it's not in stackage yet
noan 2017-01-31 15:08:33
anyone around doing haskell on windows?
markasoftware 2017-01-31 15:09:23
hopefully not
markasoftware 2017-01-31 15:09:35
hopefully nobody's doing anything on windows
Cale 2017-01-31 15:09:51
Eh, some people do -- SPJ works on Windows, from what I recall
Cale 2017-01-31 15:10:08
and Neil Mitchell
Cale 2017-01-31 15:10:41
I don't know about anyone who is around right now :)
noan 2017-01-31 15:10:42
markasoftware, I am because game development. Was thinking of doing the rest backend in haskell, but a lot of dependencies can't install via stack
markasoftware 2017-01-31 15:11:11
well, i guess with game dev you don't have much of a choice
noan 2017-01-31 15:11:12
fast-logger build results in this. Trying to install hoogle...
noan 2017-01-31 15:11:12
error: macro names must be identifiers
noan 2017-01-31 15:11:12
#ifdef !MIN_VERSION_win32(2,3,1,0)
noan 2017-01-31 15:11:12
^
noan 2017-01-31 15:11:12
`gcc.exe' failed in phase `C pre-processor'. (Exit code: 1)
Koterpillar 2017-01-31 15:11:21
noan: you can add arbitrary packages with stack.yaml
ROBOT9001 2017-01-31 15:12:36
Is this the place to ask for help?
Koterpillar 2017-01-31 15:12:53
ROBOT9001: with Haskell, surely
sm 2017-01-31 15:13:05
noan: basically, a certain portion of hackage includes C as well as haskell, and these often won't build easily on windows
sm 2017-01-31 15:13:39
so when choosing packages, you should scan their dependencies (eg for "unix")
Cale 2017-01-31 15:13:49
That right there is kinda weird though, because I wouldn't expect that macro name to be an issue
noan 2017-01-31 15:13:49
sm, sooo, am I SOL or is there a workaround that isn't such a pain in the ass that I just swap off haskell for this project entirely?
sm 2017-01-31 15:14:06
well, why do you need fast-logger ?
noan 2017-01-31 15:14:20
it is a dependency of hoogle, which I kind of wanted to use.
sm 2017-01-31 15:14:41
I see it does also depend on Win32, which means it almost certainly should work on windows. Also hoogle's author uses windows
sm 2017-01-31 15:14:58
how did you set up your haskell environment
noan 2017-01-31 15:15:19
installed stack. Stack setup.
ROBOT9001 2017-01-31 15:15:29
I'm having trouble opening WinGHCi, it opens, but it stops responding as soon as it does. Then after clicking in the window, Windows 7 just asks to close the program.
sm 2017-01-31 15:17:05
noan: installed stack using the installer from https://haskell-lang.org/get-started I guess ?
Welkin 2017-01-31 15:17:08
to fix windows problems, use linux
Welkin 2017-01-31 15:17:14
you could even just install a vm
Koterpillar 2017-01-31 15:17:50
Welkin: and tell your customers to?
noan 2017-01-31 15:17:57
Welkin, https://www.stackage.org/stack/windows-x86_64
sm 2017-01-31 15:17:58
please let's not waste time going down that thread :)
noan 2017-01-31 15:18:06
er, wrong response. sm sorry
noan 2017-01-31 15:18:41
Welkin, I generally prefer linux, but flipping between windows and a VM would drive me mad.
sm 2017-01-31 15:19:21
noan: well, you seem to be doing the right things and like Cale I'm surprised it's not working. Time to search/report in fast-logger & stack issue trackers perhaps
noan 2017-01-31 15:19:22
that's a recipe for a really shitty frustrating workflow in my eyes
noan 2017-01-31 15:19:42
sm, it's not -just- fast-logger though
noan 2017-01-31 15:20:52
or, it is this time. last time I tried from git-bash I got a full page of different errors out
sm 2017-01-31 15:21:25
hm. Have you tried from a regular cmd prompt
noan 2017-01-31 15:24:32
sm, yes, fast-logger still throws a shitfit. a friend found the error report somewhere that said it had recently been fixed specifically for fast-logger. Gonna try using nightly as a resolver just for a second and see if that gets me anywhere.
noan 2017-01-31 15:25:16
sadly she didn't link me and has since gone to shower
sm 2017-01-31 15:26:19
https://github.com/kazu-yamamoto/logger/issues/118
noan 2017-01-31 15:27:35
*cheers nightly on*
noan 2017-01-31 15:39:17
hoogle has successfully installed via nightly resolver.
noan 2017-01-31 15:39:28
incase anyone asks you later the same question, sm
sm 2017-01-31 15:40:23
thanks noan, I figured it would from fast-logger's changelog etc.
noan 2017-01-31 15:40:45
I just feared additional dependencies may fail.
sm 2017-01-31 15:41:42
glad you got it resolved. A little alarming I guess if you're used to things in stackage LTS just working
Cale 2017-01-31 15:42:34
sm: haha "resolved"
sm 2017-01-31 15:43:34
eh what I can't hear you
sm 2017-01-31 15:44:17
well, it does seem resolved ?
noan 2017-01-31 15:44:27
sm, he was making a pun
noan 2017-01-31 15:44:30
resolved via a resolver.
sm 2017-01-31 15:44:33
Owwwww
noan 2017-01-31 15:44:34
I belive.