Merge branch 'darcs' into master
[git-darcs-import.git] / src / Darcs / Patch / MatchData.lhs
blob32e03d97c97f948eb0a8da32a5b80b22abebe840
1 % Copyright (C) 2004 David Roundy
3 % This program is free software; you can redistribute it and/or modify
4 % it under the terms of the GNU General Public License as published by
5 % the Free Software Foundation; either version 2, or (at your option)
6 % any later version.
8 % This program is distributed in the hope that it will be useful,
9 % but WITHOUT ANY WARRANTY; without even the implied warranty of
10 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 % GNU General Public License for more details.
13 % You should have received a copy of the GNU General Public License
14 % along with this program; see the file COPYING. If not, write to
15 % the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 % Boston, MA 02110-1301, USA.
18 \begin{code}
19 module Darcs.Patch.MatchData ( PatchMatch(..), patch_match,
20 ) where
22 data PatchMatch = PatternMatch String
23 deriving ( Eq )
25 instance Show PatchMatch where
26 show (PatternMatch m) = "pattern " ++ show m
28 patch_match :: String -> PatchMatch
29 patch_match s = PatternMatch s
30 \end{code}