git.iko.soy/distributed-process
on master help sign in
Update for template-haskell-2.11
52f2e74Ben Gamari
src/Control/Distributed/Process/Internal/Closure/TH.hs+4
@@ -299,7 +299,11 @@ getType :: Name -> Q (Name, Type)
299getType name = do
299getType name = do
300 info <- reify name
300 info <- reify name
301 case info of
301 case info of
302+#if MIN_VERSION_template_haskell(2,11,0)
303+ VarI origName typ _ -> return (origName, typ)
304+#else
302 VarI origName typ _ _ -> return (origName, typ)
305 VarI origName typ _ _ -> return (origName, typ)
306+#endif
303 _ -> fail $ show name ++ " not found"
307 _ -> fail $ show name ++ " not found"
304
308
305-- | Variation on 'funD' which takes a single expression to define the function
309-- | Variation on 'funD' which takes a single expression to define the function