improve type

This commit is contained in:
Joey Hess 2017-08-31 12:47:08 -04:00
parent 4694e49158
commit e662aceeac
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 4 additions and 3 deletions

View file

@ -9,6 +9,7 @@ module Command.FindRef where
import Command
import qualified Command.Find as Find
import qualified Git
cmd :: Command
cmd = withGlobalOptions nonWorkTreeMatchingOptions $ Find.mkCommand $
@ -17,4 +18,4 @@ cmd = withGlobalOptions nonWorkTreeMatchingOptions $ Find.mkCommand $
paramRef (seek <$$> Find.optParser)
seek :: Find.FindOptions -> CommandSeek
seek o = Find.start o `withFilesInRefs` Find.findThese o
seek o = Find.start o `withFilesInRefs` (map Git.Ref $ Find.findThese o)