Skip to content

Commit 9a11c86

Browse files
committed
Minimal working example that demonstrates problem
This builds against `lts-15.0` with GHC 8.8.2; unfortunately **ghcide** segfaults when checking it for errors. Demonstrates https://github.com/digital-asset/ghcide/issues/444 as requested by @mpickering whose help we hugely appreciate.
1 parent 04d063b commit 9a11c86

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

hie.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cradle: {stack: {component: "hello:test:check" }}
1+
cradle: {stack: {component: "hello:exe:hello" }}

src/HelloMain.hs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
{-# LANGUAGE OverloadedStrings #-}
2+
{-# LANGUAGE TemplateHaskell #-}
23
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
34

45
module Main where
56

67
import Core.Program
78

9+
version :: Version
10+
version = $(fromPackage)
11+
812
main :: IO ()
9-
main = execute $ do
13+
main = do
14+
context <- configure version None blank
15+
executeWith context program
16+
17+
program :: Program None ()
18+
program = do
1019
write "Hello World"

stack.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
resolver: lts-14.22
2-
3-
extra-deps:
4-
- core-text-0.2.3.3
5-
- core-data-0.2.1.5
6-
- core-program-0.2.4.2
7-
1+
resolver: lts-15.0

0 commit comments

Comments
 (0)