Skip to content

Commit

Permalink
Minimal working example that demonstrates problem
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
istathar committed Feb 22, 2020
1 parent 04d063b commit 9a11c86
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion hie.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cradle: {stack: {component: "hello:test:check" }}
cradle: {stack: {component: "hello:exe:hello" }}
11 changes: 10 additions & 1 deletion src/HelloMain.hs
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

module Main where

import Core.Program

version :: Version
version = $(fromPackage)

main :: IO ()
main = execute $ do
main = do
context <- configure version None blank
executeWith context program

program :: Program None ()
program = do
write "Hello World"
8 changes: 1 addition & 7 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
resolver: lts-14.22

extra-deps:
- core-text-0.2.3.3
- core-data-0.2.1.5
- core-program-0.2.4.2

resolver: lts-15.0

0 comments on commit 9a11c86

Please sign in to comment.