packages feed

ghc-session 0.1.0.2 → 0.1.1.0

raw patch · 6 files changed

+10/−33 lines, 6 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Language.Haskell.Session.Session: initialize :: Session ()
- Language.Haskell.Session.Session: initializeWith :: Config -> Session ()
+ Language.Haskell.Session.Hint.Eval: interpretTyped :: GhcMonad m => String -> String -> m a
+ Language.Haskell.Session.Session: type Import = String
+ Language.Haskell.Session.Session: type Session = Ghc

Files

ghc-session.cabal view
@@ -1,11 +1,11 @@ name:                ghc-session-version:             0.1.0.2+version:             0.1.1.0 synopsis:            Simplified GHC API description:         Simplified GHC API license:             MIT license-file:        LICENSE author:              Piotr Młodawski-maintainer:          remdezx+github@gmail.com+maintainer:          Piotr Młodawski <remdezx+github@gmail.com> homepage:            http://github.com/pmlodawski/ghc-session bug-reports:         http://github.com/pmlodawski/ghc-session/issues category:            Language
src/Language/Haskell/Session/Hint/Conversions.hs view
@@ -1,10 +1,3 @@------------------------------------------------------------------------------- Copyright (C) Flowbox, Inc - All Rights Reserved--- Flowbox Team <contact@flowbox.io>, 2014--- Proprietary and confidential--- Unauthorized copying of this file, via any medium is strictly prohibited----------------------------------------------------------------------------- module Language.Haskell.Session.Hint.Conversions where  import qualified DynFlags
src/Language/Haskell/Session/Hint/Eval.hs view
@@ -1,13 +1,8 @@------------------------------------------------------------------------------- Copyright (C) Flowbox, Inc - All Rights Reserved--- Flowbox Team <contact@flowbox.io>, 2014--- Proprietary and confidential--- Unauthorized copying of this file, via any medium is strictly prohibited---------------------------------------------------------------------------- {-# LANGUAGE MagicHash #-}  module Language.Haskell.Session.Hint.Eval (-    interpret+    interpret,+    interpretTyped, ) where  import           Data.Typeable (Typeable)@@ -27,15 +22,16 @@  -- | Evaluates an expression, given a witness for its monomorphic type. interpret' :: (GHC.GhcMonad m, Typeable a) => String -> a -> m a-interpret' expr wit = interpret'' expr typeStr where+interpret' expr wit = interpretTyped expr typeStr where     typeStr = show $ Typeable.typeOf wit  -interpret'' :: (GHC.GhcMonad m, Typeable a) => String -> String -> m a-interpret'' expr typeStr = do+interpretTyped :: GHC.GhcMonad m => String -> String -> m a+interpretTyped expr typeStr = do     let typedExpr = concat [parens expr, " :: ", typeStr]     exprVal <- GHC.compileExpr typedExpr     return (Exts.unsafeCoerce# exprVal :: a)+  -- | Conceptually, @parens s = \"(\" ++ s ++ \")\"@, where s is any valid haskell -- expression. In practice, it is harder than this.
src/Language/Haskell/Session/Hint/Typecheck.hs view
@@ -1,9 +1,3 @@------------------------------------------------------------------------------- Copyright (C) Flowbox, Inc - All Rights Reserved--- Flowbox Team <contact@flowbox.io>, 2014--- Proprietary and confidential--- Unauthorized copying of this file, via any medium is strictly prohibited---------------------------------------------------------------------------- {-# LANGUAGE TemplateHaskell #-}  module Language.Haskell.Session.Hint.Typecheck where
src/Language/Haskell/Session/Hint/Util.hs view
@@ -1,9 +1,3 @@------------------------------------------------------------------------------- Copyright (C) Flowbox, Inc - All Rights Reserved--- Flowbox Team <contact@flowbox.io>, 2014--- Proprietary and confidential--- Unauthorized copying of this file, via any medium is strictly prohibited---------------------------------------------------------------------------- module Language.Haskell.Session.Hint.Util where  import qualified Data.Char as Char
src/Language/Haskell/Session/Session.hs view
@@ -1,14 +1,14 @@ module Language.Haskell.Session.Session (     -- * Session+    Session,     run,-    initialize,     runWith,-    initializeWith,      -- * Flags     setStrFlags,      -- * Imports+    Import,     setImports,     withImports,