started converting Ref from String to ByteString
This should make code that reads shas and refs from git faster. Does not compile yet, a lot needs to be done still.
This commit is contained in:
parent
6e9714612b
commit
279991604d
17 changed files with 80 additions and 51 deletions
|
@ -81,10 +81,10 @@ instance IsString ConfigValue where
|
|||
type RemoteName = String
|
||||
|
||||
{- A git ref. Can be a sha1, or a branch or tag name. -}
|
||||
newtype Ref = Ref String
|
||||
newtype Ref = Ref S.ByteString
|
||||
deriving (Eq, Ord, Read, Show)
|
||||
|
||||
fromRef :: Ref -> String
|
||||
fromRef :: Ref -> S.ByteString
|
||||
fromRef (Ref s) = s
|
||||
|
||||
{- Aliases for Ref. -}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue