Skip to content

Commit 0d73d2c

Browse files
committed
Add a SafeCopy constraint to a Migrate instance because the template
haskell splice keeps the actual instance out of scope.
1 parent 6a5a492 commit 0d73d2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Happstack/Authenticate/Handlers.hs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ data AuthenticateState = AuthenticateState
179179
deriveSafeCopy 2 'extension ''AuthenticateState
180180
makeLenses ''AuthenticateState
181181

182-
instance Migrate AuthenticateState where
182+
instance SafeCopy AuthenticateState_1 => Migrate AuthenticateState where
183183
type MigrateFrom AuthenticateState = AuthenticateState_1
184184
migrate (AuthenticateState_1 ss us nui dst nam) = AuthenticateState ss us nui dst nam Nothing
185185

0 commit comments

Comments
 (0)