Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Scripts #421

Closed
Montmorency opened this issue Sep 24, 2020 · 2 comments · Fixed by #438
Closed

Running Scripts #421

Montmorency opened this issue Sep 24, 2020 · 2 comments · Fixed by #438
Labels

Comments

@Montmorency
Copy link
Contributor

With The following test Script:

#!/usr/bin/env run-script
module Application.Script.UpdateLastDrank where
import Application.Script.Prelude
import Generated.Types
import Data.Time.Clock
import Data.Time.Calendar

run :: Script
run = do
    putStrLn "Updated Latest Record Entry"

When I run via command line, in a nix-shell. I am getting the error:

IHP> IHP> IHP> IHP> [1 of 3] Compiling Generated.Types  ( build/Generated/Types.hs, interpreted )
[2 of 3] Compiling Application.Script.Prelude ( Application/Script/Prelude.hs, interpreted )
[3 of 3] Compiling Application.Script.UpdateLastDrank ( Application/Script/UpdateLastDrank.hs, interpreted )
Ok, three modules loaded.
IHP> IHP>
<interactive>:7:1: error:
    • No instance for IHP.FrameworkConfig.FrameworkConfig
        arising from a use of ‘runScript’
    • In the expression: runScript run
      In an equation for ‘it’: it = runScript run
IHP> Leaving GHCi.

Possibly related to this issue?

@Montmorency
Copy link
Contributor Author

On IHP rev = "0575a933331d45782ed732a5437ead377e165b29" btw.

@mpscholten mpscholten added the bug label Sep 24, 2020
mpscholten added a commit that referenced this issue Oct 1, 2020
This was caused by a recent change to more modules requiring a FrameworkConfig constraint. Fixes #421
@mpscholten
Copy link
Member

Sorry for late fix :) This is fixed via #438 and will be part of tomorrows IHP release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants