Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ConstMath/Pass.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ImpredicativeTypes #-}

{-# OPTIONS_GHC -Wall #-}
module ConstMath.Pass (
Expand Down Expand Up @@ -146,7 +147,8 @@ mkUnaryCollapseNum fnE opts expr@(App f1 (App f2 (Lit lit)))
| otherwise = do
let sub = fnE (from d)
msgResult
return (App f2 (mkLit sub))
dflags <- getDynFlags
return (App f2 (mkLit dflags sub))
mkUnaryCollapseNum _ _ expr = return expr

mkBinaryCollapse :: (forall a. RealFloat a => (a -> a -> a))
Expand Down
2 changes: 1 addition & 1 deletion tests/Make.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Main where

import System.Cmd
import System.Directory
import System.Process

import Paths_const_math_ghc_plugin

Expand Down