Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make "Duplicate version tags" crash a compile-time error #14

Open
nh2 opened this issue May 16, 2014 · 0 comments
Open

Make "Duplicate version tags" crash a compile-time error #14

nh2 opened this issue May 16, 2014 · 0 comments

Comments

@nh2
Copy link

nh2 commented May 16, 2014

My program just crashed at run-time with

ghc: Duplicate version tags: [2,2,1]

because I wrote

deriveSafeCopy 2 'extension ''Mytype_v2
deriveSafeCopy 2 'extension ''Mytype_v3

when I meant deriveSafeCopy 3 'extension ''Mytype_v3.

Since I use deriveSafeCopy which is TemplateHaskell, it would be great if this mistake could be pointed out to me at compile time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant