threestrikes 2017-02-08 14:45:16
In order to have git compile my changes that I have committed do I need to create another branch?
c_wraith 2017-02-08 14:45:40
No direct relation, I was just reminding myself which side of Either was Left and which was Right. I have trouble with those sometimes. :)
c_wraith 2017-02-08 14:45:55
Left and Right are difficult directions. always being sneaky and changing
c_wraith 2017-02-08 14:46:25
halogenandtoast: so the most recent paste is the one that error came from?
halogenandtoast 2017-02-08 14:46:32
c_wraith: yes
halogenandtoast 2017-02-08 14:47:23
and for reference `exists :: RedisCtx m f => ByteString -> m (f Bool)`
halogenandtoast 2017-02-08 14:47:48
So in this situation m is (Either t0) and f is Redis
lpaste_ 2017-02-08 14:47:49
c_wraith annotated "Stories.hs" with "Stories.hs (annotation)" at http://lpaste.net/352251#a352253
halogenandtoast 2017-02-08 14:48:32
oh
halogenandtoast 2017-02-08 14:48:36
how silly
halogenandtoast 2017-02-08 14:49:48
Thanks c_wraith that makes sense
c_wraith 2017-02-08 14:50:05
The error message does seem a bit weird in that case.
c_wraith 2017-02-08 14:50:16
But I'm going to blame that on it being a multiparameter type class
c_wraith 2017-02-08 14:50:27
those make things more complicated.
dibblego 2017-02-08 14:51:05
@where NICTA
lambdabot 2017-02-08 14:51:05
https://github.com/nicta/course
c_wraith 2017-02-08 14:52:58
halogenandtoast: oh, I see. You had the type parameters backwards. There's an instance where m is Redis and f is (Either Reply)
c_wraith 2017-02-08 14:53:28
halogenandtoast: so it looked like it was complaining about something bizarre, but really it was just the order of operations being backwards
halogenandtoast 2017-02-08 14:53:53
:?
halogenandtoast 2017-02-08 14:54:18
I kind of understand.
c_wraith 2017-02-08 14:54:31
IE, you needed to bind the result into the Redis context before you could pattern-match on it, not after
halogenandtoast 2017-02-08 14:55:26
Ah yeah
halogenandtoast 2017-02-08 14:58:13
is there any function f with a signature like `Either a b -> b -> b` such that `f False either` is b of Right b or False of Left a?
halogenandtoast 2017-02-08 14:58:54
basically I want to get rid of case fetched of Right truth -> truth; _ -> False with a function call
halogenandtoast 2017-02-08 14:59:22
so something similar to `maybe` but for Either
geekosaur 2017-02-08 14:59:45
:t either (const False) id
lambdabot 2017-02-08 14:59:46
Either b Bool -> Bool
c_wraith 2017-02-08 14:59:51
well, there's the function `either`, but it's closer to `maybe` than `fromMaybe`, and that's what you're describing
c_wraith 2017-02-08 15:01:17
:t \x -> either (const x) id
lambdabot 2017-02-08 15:01:19
c -> Either b c -> c
halogenandtoast 2017-02-08 15:01:28
I guess that will do, thanks geekosaur and c_wraith
halogenandtoast 2017-02-08 15:01:40
I looked at the type signature and dismissed it
halogenandtoast 2017-02-08 15:02:11
but I just needed to fill in the correct values for (a -> c), (b -> c)
threestrikes 2017-02-08 15:28:34
I'm not sure if I'm using git correctly. http://pastebin.com/d2T1Uw59
threestrikes 2017-02-08 15:29:54
I'm trying to change a few images on menu buttons and I'm getting this error after re-compiling.
kadoban 2017-02-08 15:33:17
That's a weird message ...
threestrikes 2017-02-08 15:37:40
I made changes to a file and added the images to the directory a function checks for images. I did a git commit but's as if the function is expecting the .png file to be there but for some reason it's not. I can see it there locally.
threestrikes 2017-02-08 15:38:14
I'm sure it's something simple, but I don't understand.
kadoban 2017-02-08 15:39:41
threestrikes: What is your stack.yaml setup? Which repo did you do this commit in? Did you push it anywhere?
kadoban 2017-02-08 15:39:51
Are the messages at the top new, or is that expected behavior?
threestrikes 2017-02-08 15:40:17
expected behavior
threestrikes 2017-02-08 15:40:52
I did the commit in a cloned repo that is local
threestrikes 2017-02-08 15:41:07
I haven't pushed it
threestrikes 2017-02-08 15:42:20
How would I find my stack.yaml setup?
kadoban 2017-02-08 15:43:12
threestrikes: Well, are the changes you've made in the thing you're actually building or a dependency? It's not really clear. Before it sounded like you were changing a dependency. You should have a stack.yaml file somewhere usually.
threestrikes 2017-02-08 15:44:08
It's not a dependency it's the actual build
kadoban 2017-02-08 15:44:41
Oh, then I don't see how git is really relevant at all. stack doesn't really care about git unless you tell it to.