From c83970422cbe50911fe713e8ab2d7d0606d1069a Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 12 Mar 2021 06:59:43 -0800 Subject: [PATCH] cli: fix a build failure with ghc 9.0 (#1503) Also remove the obsolete shebang line. --- hledger/app/hledger-cli.hs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hledger/app/hledger-cli.hs b/hledger/app/hledger-cli.hs index 349b6fbc42f..a882da11e57 100755 --- a/hledger/app/hledger-cli.hs +++ b/hledger/app/hledger-cli.hs @@ -1,6 +1,9 @@ -#!/usr/bin/env runhaskell -- the hledger command-line executable; see Hledger/Cli/Main.hs module Main (main) where -import Hledger.Cli.Main (main) +import qualified Hledger.Cli.Main (main) + +-- Have to write this explicitly for GHC 9.0.1a for some reason: +main :: IO () +main = Hledger.Cli.Main.main