This causes an encodeBS thunk, and the first evaluation of the string
forces it. From then on, further uses operate on a ByteString. This
avoids converting repeatedly.
noquote (a :+: b) = noquote a <> noquote b
instance IsString StringContainingQuotedPath where
- fromString = UnquotedString
+ fromString = UnquotedByteString . encodeBS
instance Sem.Semigroup StringContainingQuotedPath where
UnquotedString a <> UnquotedString b = UnquotedString (a <> b)