summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Infra/Location.hs
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2014-10-21 14:42:31 +0000
committerhallgren <hallgren@chalmers.se>2014-10-21 14:42:31 +0000
commit3bfcfa157dc291e03bfb4db3baed8b0098d76f50 (patch)
tree8e71873156f297219ff79803990c7c22ffe7c198 /src/compiler/GF/Infra/Location.hs
parentf6441b22921c6ae24840d60b80672d499ddaef33 (diff)
Renaming SourceGrammar to Grammar and similarly for some related types
Included renamings: SourceGrammar -> Grammar SourceModule -> Module SourceModInfo -> ModuleInfo emptySourceGrammar -> emptyGrammar Also introduces a type synonym (which might be good to turn into a newtype): type ModuleName = Ident The reason is to make types like the following more self documenting: type Module = (ModuleName,ModuleInfo) type QIdent = (ModuleName,Ident)
Diffstat (limited to 'src/compiler/GF/Infra/Location.hs')
-rw-r--r--src/compiler/GF/Infra/Location.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/GF/Infra/Location.hs b/src/compiler/GF/Infra/Location.hs
index b38482ff9..36bfab044 100644
--- a/src/compiler/GF/Infra/Location.hs
+++ b/src/compiler/GF/Infra/Location.hs
@@ -1,6 +1,9 @@
+-- | Source locations
module GF.Infra.Location where
import GF.Text.Pretty
+-- ** Source locations
+
class HasSourcePath a where sourcePath :: a -> FilePath
data Location