c0dehero 2017-02-21 16:52:14
man. i wish security upgrades would work nicely on NixOS
c0dehero 2017-02-21 16:53:36
Koterpillar: i can give you my config file if that helps. lol
Koterpillar 2017-02-21 16:54:01
c0dehero: I'd love to have a look, thanks
c0dehero 2017-02-21 16:56:07
Koterpillar: there you go https://github.com/C0DEHERO/nixrc https://github.com/C0DEHERO/dotfiles/tree/master/nixpkgs
c0dehero 2017-02-21 16:56:32
lol. it's been 2 years already since i stopped using nixos oO
c0dehero 2017-02-21 16:56:36
wow
c0dehero 2017-02-21 16:56:42
how time flies
clmg 2017-02-21 16:57:47
Why do I get 'cannot construct the infinite type' when trying to pull the just out of this maybe?
clmg 2017-02-21 16:57:59
data Foo = Foo { child :: Maybe Foo }
clmg 2017-02-21 16:58:09
let Just child = get child foo
Koterpillar 2017-02-21 16:58:32
clmg: what's the type of foo?
clmg 2017-02-21 16:58:41
"cannot construct the infinite type a ~ Maybe (Foo :-> a)"
clmg 2017-02-21 16:59:01
Koterpillar: it's a data constructor? Its type is Foo.
clmg 2017-02-21 16:59:05
right?
Koterpillar 2017-02-21 16:59:28
clmg: then why not: let Just child = child foo
Koterpillar 2017-02-21 16:59:41
you've clobbered the name, but well
clmg 2017-02-21 17:00:01
oh
clmg 2017-02-21 17:00:12
I think it's because of the name clobber
clmg 2017-02-21 17:00:13
omg
clmg 2017-02-21 17:00:14
thanks
monochrom 2017-02-21 17:02:16
"The child that you named is not the real child" :)
johnw 2017-02-21 17:03:39
The name that can be named is not the Eternal Name.
lpaste_ 2017-02-21 17:17:47
threshold pasted "Error in using Scotty" at http://lpaste.net/352847
halogenandtoast 2017-02-21 17:19:22
I need to learn to become better with Docker. My currently deployment strategy is rather archaic.
threshold 2017-02-21 17:19:48
Is it not possible to capture variables in a post with Scotty?
halogenandtoast 2017-02-21 17:20:11
Currently, I ssh in, pull down my git repo, run stack build, stop my webserver, and start it back up with nohup
Koterpillar 2017-02-21 17:20:17
threshold: post "..." $ do
halogenandtoast 2017-02-21 17:20:37
I wanted to use Halcyon, but couldn't figure it out.
threshold 2017-02-21 17:20:46
Koterpillar: That is what was used.
Koterpillar 2017-02-21 17:21:04
threshold: you are missing the $
threshold 2017-02-21 17:22:55
Koterpillar: Thanks. post "/users/:email/:pass" $ do -- still gives error: parse error on input 'post'
Koterpillar 2017-02-21 17:23:33
hmm. It's still a syntax error, but I can't see where.
Koterpillar 2017-02-21 17:23:44
did you post the full code for main?
Koterpillar 2017-02-21 17:24:06
by the way, why do you need 'liftIO' in main? main is IO ()
Koterpillar 2017-02-21 17:24:54
please post the full code for main
spatial 2017-02-21 17:28:13
Can gloss be installed using stack on Ubuntu ?
spatial 2017-02-21 17:28:38
After installation spacemacs is not finding it.
lpaste_ 2017-02-21 17:30:48
threshold pasted "Simple Scotty App" at http://lpaste.net/352848
threshold 2017-02-21 17:31:12
Koterpillar: I have simplified the app to its core
threshold 2017-02-21 17:31:57
I think the database connection information should be passed in as part of the
threshold 2017-02-21 17:32:13
Scotty configuration, but I haven't made it to that step.
Koterpillar 2017-02-21 17:33:47
OK, so that's a different error
Koterpillar 2017-02-21 17:33:52
give createUser a type
halogenandtoast 2017-02-21 17:34:57
Basically because you don't use the params, Haskell can't infer the type.
lpaste_ 2017-02-21 17:38:34
threshold pasted "New Error for simple Scotty application" at http://lpaste.net/352849
spatial 2017-02-21 17:38:40
Maybe stack and cabal use different paths
threshold 2017-02-21 17:39:30
I wonder what "Web.Scotty.Internal.Types.ActionT T.Text IO T.Text" represents.
halogenandtoast 2017-02-21 17:39:38
threshold: You might need to liftIO the connect call
Koterpillar 2017-02-21 17:39:44
threshold: liftIO createUser
halogenandtoast 2017-02-21 17:39:57
or sorry, yes, createUser
threshold 2017-02-21 17:41:09
:t liftIO
lambdabot 2017-02-21 17:41:11
MonadIO m => IO a -> m a