Skip to content

Commit 291b3b2

Browse files
mpscholtenclaude
andcommitted
Add missing packages and paths for ghci-based testing
devenv-module.nix: - Add slugger, megaparsec, cryptohash, pwstore-fast, vault to ghcWithPackages so ghci can load IHP modules directly .ghci: - Add ihp-imagemagick and ihp-hspec to include paths This enables running tests via ghci: direnv exec . bash -c 'echo -e ":l ihp-ide/Test/Main.hs\nmain" | ghci' Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8ce51db commit 291b3b2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.ghci

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
:set -iihp
44
:set -iihp-ide
55
:set -iihp-ssc
6+
:set -iihp-imagemagick
7+
:set -iihp-hspec
68
:set -iwai-asset-path
79
:set -iwai-flash-messages
810
:set -threaded

devenv-module.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ that is defined in flake-module.nix
116116
ihp-hsx
117117
ihp-postgresql-simple-extra
118118

119+
# Packages needed for ghci to load IHP modules
120+
slugger
121+
megaparsec
122+
cryptohash
123+
pwstore-fast
124+
vault
119125

120126
http-streams
121127
HsOpenSSL

0 commit comments

Comments
 (0)