-- 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.org/DevTools/Features/SourceMap and here
-- https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit
@package sourcemap
@version 0.1.1.0
-- | 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
-- | Generate JSON from a source mapping.
module SourceMap
-- | Generate the JSON from a source mapping.
generate :: SourceMapping -> Value