git.iko.soy/distributed-process
on master help sign in
Improve docs
5aea7b9Edsko de Vries
distributed-process/src/Control/Distributed/Process/Internal/Closure/TH.hs+4
@@ -96,6 +96,10 @@ remotable ns = do
96-- dictionaries and static versions that 'remotable' also creates.
96-- dictionaries and static versions that 'remotable' also creates.
97-- 'remotableDec' is sometimes necessary when you want to refer to, say,
97-- 'remotableDec' is sometimes necessary when you want to refer to, say,
98-- @$(mkClosure 'f)@ within the definition of @f@ itself.
98-- @$(mkClosure 'f)@ within the definition of @f@ itself.
99+--
100+-- NOTE: 'remotableDec' creates @__remoteTableDec@ instead of @__remoteTable@
101+-- so that you can use both 'remotable' and 'remotableDec' within the same
102+-- module.
99remotableDec :: [Q [Dec]] -> Q [Dec]
103remotableDec :: [Q [Dec]] -> Q [Dec]
100remotableDec qDecs = do
104remotableDec qDecs = do
101 decs <- concat <$> sequence qDecs
105 decs <- concat <$> sequence qDecs