git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Add comment explaining ImportedModule
d7e0047Harry Garrood
psci/Commands.hs+9
@@ -66,4 +66,13 @@ data Command
66 --
66 --
67 | Show String
67 | Show String
68
68
69+-- | All of the data that is contained by an ImportDeclaration in the AST.
70+-- That is:
71+--
72+-- * A module name, the name of the module which is being imported
73+-- * An ImportDeclarationType which specifies whether there is an explicit
74+-- import list, a hiding list, or neither.
75+-- * If the module is imported qualified, its qualified name in the importing
76+-- module. Otherwise, Nothing.
77+--
69type ImportedModule = (ModuleName, ImportDeclarationType, Maybe ModuleName)
78type ImportedModule = (ModuleName, ImportDeclarationType, Maybe ModuleName)