Skip to content

Commit

Permalink
Revert "restore backwards compatibility after changes for #165"
Browse files Browse the repository at this point in the history
This reverts commit 3f59987.
  • Loading branch information
Ingo60 committed Aug 19, 2015
1 parent d4997ab commit 22120d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions frege/compiler/types/Packs.fr
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ magicPack nm = nm
--- > unmagicPack . magicPack = id
--- The following should hold for package names that start with "frege.c"
--- > magicPack . unmagicPack = id
unmagicPack s
| Just m s =~ ´^frege\.(.)(.*)´,
Just c <- m.group 1, Just rest <- m.group 2,
unmagicPack (m~´^frege\.(.)(.*)´)
| Just c <- m.group 1, Just rest <- m.group 2,
not (c.charAt 0).isUpperCase
= c.toUpperCase ++ rest
unmagicPack nm = nm
Expand Down
2 changes: 1 addition & 1 deletion frege/compiler/types/Targets.fr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module frege.compiler.types.Targets where
data Target = Target {!major, !minor :: Int } where
--- decode a target specification
decode ∷ String Maybe Target
decode s | Just m s =~ ´^(\d+)\.(\d+) = do
decode (m~´^(\d+)\.(\d+)) = do
maj m.group 1
min m.group 2
return (Target maj.atoi min.atoi)
Expand Down

0 comments on commit 22120d4

Please sign in to comment.