git.iko.soy/distributed-process
on master help sign in
Update for template-haskell-2.11

This ships with GHC 8.0.1

commit52f2e747c49144705589917bcdf4b591f242b4f5 authorBen Gamari <ben@smart-cactus.org> dateWed 30 Mar 2016, 11:03 (11 years ago) parentad11235
1 file changed+4
src/Control/Distributed/Process/Internal/Closure/TH.hs+4
src/Control/Distributed/Process/Internal/Closure/TH.hs+4
@@ -299,7 +299,11 @@ getType :: Name -> Q (Name, Type)
299299getType name = do
300300 info <- reify name
301301 case info of
302+#if MIN_VERSION_template_haskell(2,11,0)
303+ VarI origName typ _ -> return (origName, typ)
304+#else
302305 VarI origName typ _ _ -> return (origName, typ)
306+#endif
303307 _ -> fail $ show name ++ " not found"
304308
305309-- | Variation on 'funD' which takes a single expression to define the function