summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/ghci/p14.script
blob: 4802faf9404e449bb6933e541ff5ac9ce56cfca7 (plain)
1
2
3
4
5
6
7
8
9
10
-- Test restricted functionality: RULES
:unset +s
:set -XSafe

:set -fenable-rewrite-rules

let f x = x - 1

{-# RULES "id/Int" id = f #-}