
Since `cabal-install` already depends on `bytestring`, we can then use `unsafePackCStringLen` and ByteString I/O functions for outputting the
#849: [PATCH] Store licenses in text files instead of code. ---------------------------------+------------------------------------------ Reporter: refold | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ---------------------------------+------------------------------------------ Comment(by refold): Replying to [comment:6 refold]: license file. After looking at how ByteString I/O is implemented: converting to ByteString is actually not needed, we can just use `hPutBuf`. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/849#comment:7 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects