Created
August 27, 2013 18:08
-
-
Save co-dan/6356964 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> modifyMatch :: LMatch RdrName (LHsExpr RdrName) | |
> -> LMatch RdrName (LHsExpr RdrName) | |
> modifyMatch (L l1 (Match lpat lty rs@(GRHSs{..}))) = | |
> let f (L l1 (GRHS guards body)) = | |
> L l1 (GRHS guards (modifyExpr body)) | |
> in L l1 (Match lpat lty (rs | |
> { grhssGRHSs = map f grhssGRHSs })) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment