mkGadtDecl no longer in P monad
authorJan Stolarek <jan.stolarek@p.lodz.pl>
Wed, 11 Nov 2015 12:28:01 +0000 (13:28 +0100)
committerBen Gamari <ben@smart-cactus.org>
Wed, 11 Nov 2015 12:28:18 +0000 (13:28 +0100)
commitafbd30b6cc486378dd556f738a5337e126bf65a7
tree16dfd9fd584f04c93e3e2969ee5696a98af767ae
parentfb0d5120d383324c6934144b938525378e3ade75
mkGadtDecl no longer in P monad

Since `mkGadtDecl` does not use any of the functions specific to the `P`
monad we can extract it from that monad and reuse in other parts of the
compiler.

Test Plan: ./validate

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: thomie, mpickering

Differential Revision: https://phabricator.haskell.org/D1461
compiler/parser/Parser.y
compiler/parser/RdrHsSyn.hs