File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
haskell/hyper-haskell-server Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 11{- ----------------------------------------------------------------------------
22 HyperHaskell
33------------------------------------------------------------------------------}
4+ {-# LANGUAGE CPP #-}
45{-# LANGUAGE GADTSyntax, ExistentialQuantification, RankNTypes, ScopedTypeVariables #-}
56{-# LANGUAGE OverloadedStrings #-}
67module Main where
@@ -126,6 +127,12 @@ toInterpreterError e = case fromException e of
126127 Just e -> e
127128 Nothing -> UnknownError (displayException e)
128129
130+ #if MIN_VERSION_base(4,8,0)
131+ #else
132+ displayException :: SomeException -> String
133+ displayException = show
134+ #endif
135+
129136-- | Haskell Interpreter.
130137data Hint = Hint
131138 { run :: forall a . Interpreter a -> IO (Result a )
You can’t perform that action at this time.
0 commit comments