-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Implementation of source maps as proposed by Google and Mozilla. -- -- Implementation of source maps, revision 3, proposed by Google and -- Mozilla here -- https:wiki.mozilla.orgDevToolsFeatures/SourceMap and -- here -- https:docs.google.comdocumentd1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0kedit @package sourcemap @version 0.1.0.1 -- | Types for the source maps. module SourceMap.Types -- | The source mapping. data SourceMapping SourceMapping :: FilePath -> Maybe FilePath -> [Mapping] -> SourceMapping smFile :: SourceMapping -> FilePath smSourceRoot :: SourceMapping -> Maybe FilePath smMappings :: SourceMapping -> [Mapping] -- | A mapping. data Mapping Mapping :: Pos -> Maybe Pos -> Maybe FilePath -> Maybe String -> Mapping mapGenerated :: Mapping -> Pos mapOriginal :: Mapping -> Maybe Pos mapSourceFile :: Mapping -> Maybe FilePath mapName :: Mapping -> Maybe String -- | A source position. data Pos Pos :: Int32 -> Int32 -> Pos posLine :: Pos -> Int32 posColumn :: Pos -> Int32 instance Eq Pos instance Show Pos instance Show Mapping instance Show SourceMapping instance Ord Pos module SourceMap -- | Generate the JSON. generate :: SourceMapping -> Value encodeMappings :: [FilePath] -> [String] -> [Mapping] -> ByteString -- | Format version. version :: Integer