Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype HieDb = HieDb {}
- data HieDbException = IncompatibleSchemaVersion {}
- setHieTrace :: HieDb -> Maybe (Text -> IO ()) -> IO ()
- data SourceFile
- data ModuleInfo = ModuleInfo {}
- type Res a = a :. ModuleInfo
- toNsChar :: NameSpace -> String
- fromNsChar :: Text -> Maybe NameSpace
- data HieModuleRow = HieModuleRow {}
- data RefRow = RefRow {
- refSrc :: FilePath
- refNameOcc :: OccName
- refNameMod :: ModuleName
- refNameUnit :: Unit
- refSLine :: Int
- refSCol :: Int
- refELine :: Int
- refECol :: Int
- data DeclRow = DeclRow {}
- data ImportRow = ImportRow {}
- data TypeName = TypeName {}
- data TypeRef = TypeRef {
- typeRefOccId :: Int64
- typeRefHieFile :: FilePath
- typeRefDepth :: Int
- typeRefSLine :: Int
- typeRefSCol :: Int
- typeRefELine :: Int
- typeRefECol :: Int
- data DefRow = DefRow {}
- data ExportRow = ExportRow {}
- class Monad m => NameCacheMonad m where
- newtype DbMonadT m a = DbMonadT {
- runDbMonad :: ReaderT (IORef NameCache) m a
- type DbMonad = DbMonadT IO
- runDbM :: IORef NameCache -> DbMonad a -> IO a
- data HieDbErr
- data Symbol = Symbol {}
- readNameSpace :: ReadP NameSpace
- readColon :: ReadP ()
- readSymbol :: ReadP Symbol
- newtype LibDir = LibDir FilePath
- type HieTarget = Either FilePath (ModuleName, Maybe Unit)
Documentation
data HieDbException Source #
Instances
Exception HieDbException Source # | |
Defined in HieDb.Types | |
Show HieDbException Source # | |
Defined in HieDb.Types showsPrec :: Int -> HieDbException -> ShowS # show :: HieDbException -> String # showList :: [HieDbException] -> ShowS # | |
Eq HieDbException Source # | |
Defined in HieDb.Types (==) :: HieDbException -> HieDbException -> Bool # (/=) :: HieDbException -> HieDbException -> Bool # | |
Ord HieDbException Source # | |
Defined in HieDb.Types compare :: HieDbException -> HieDbException -> Ordering # (<) :: HieDbException -> HieDbException -> Bool # (<=) :: HieDbException -> HieDbException -> Bool # (>) :: HieDbException -> HieDbException -> Bool # (>=) :: HieDbException -> HieDbException -> Bool # max :: HieDbException -> HieDbException -> HieDbException # min :: HieDbException -> HieDbException -> HieDbException # |
data SourceFile Source #
Encodes the original haskell source file of a module, along with whether it is "real" or not A file is "real" if it comes from the user project, as opposed to a dependency
data ModuleInfo Source #
ModuleInfo | |
|
Instances
Show ModuleInfo Source # | |
Defined in HieDb.Types showsPrec :: Int -> ModuleInfo -> ShowS # show :: ModuleInfo -> String # showList :: [ModuleInfo] -> ShowS # | |
Eq ModuleInfo Source # | |
Defined in HieDb.Types (==) :: ModuleInfo -> ModuleInfo -> Bool # (/=) :: ModuleInfo -> ModuleInfo -> Bool # | |
FromRow ModuleInfo Source # | |
Defined in HieDb.Types | |
ToRow ModuleInfo Source # | |
Defined in HieDb.Types toRow :: ModuleInfo -> [SQLData] # |
type Res a = a :. ModuleInfo Source #
data HieModuleRow Source #
HieModuleRow | |
|
Instances
Show HieModuleRow Source # | |
Defined in HieDb.Types showsPrec :: Int -> HieModuleRow -> ShowS # show :: HieModuleRow -> String # showList :: [HieModuleRow] -> ShowS # | |
Eq HieModuleRow Source # | |
Defined in HieDb.Types (==) :: HieModuleRow -> HieModuleRow -> Bool # (/=) :: HieModuleRow -> HieModuleRow -> Bool # | |
FromRow HieModuleRow Source # | |
Defined in HieDb.Types | |
ToRow HieModuleRow Source # | |
Defined in HieDb.Types toRow :: HieModuleRow -> [SQLData] # |
RefRow | |
|
ImportRow | |
|
TypeRef | |
|
ExportRow | |
|
class Monad m => NameCacheMonad m where Source #
Monad with access to NameCacheUpdater
, which is needed to deserialize .hie
files
Instances
MonadIO m => NameCacheMonad (DbMonadT m) Source # | |
Defined in HieDb.Types |
DbMonadT | |
|
Instances
MonadTrans DbMonadT Source # | |
Defined in HieDb.Types | |
MonadIO m => MonadIO (DbMonadT m) Source # | |
Defined in HieDb.Types | |
Monad m => Applicative (DbMonadT m) Source # | |
Monad m => Functor (DbMonadT m) Source # | |
Monad m => Monad (DbMonadT m) Source # | |
MonadIO m => NameCacheMonad (DbMonadT m) Source # | |
Defined in HieDb.Types |
readSymbol :: ReadP Symbol Source #
GHC Library Directory. Typically you'll want to use
libdir
from ghc-paths
type HieTarget = Either FilePath (ModuleName, Maybe Unit) Source #
A way to specify which HieFile to operate on.
Either the path to .hie
file is given in the Left
Or ModuleName (with optional Unit) is given in the Right