Skip to content

Commit b094dff

Browse files
Prefix internal unused fields with underscore.
Due to warning: [-Wunused-top-binds].
1 parent 5f04dc6 commit b094dff

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Database/MongoDB/GridFS.hs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ sourceFile file = yieldChunk 0 where
121121

122122
-- Used to keep data during writing
123123
data FileWriter = FileWriter
124-
{ fwChunkSize :: Int64
125-
, fwBucket :: Bucket
126-
, fwFilesId :: ObjectId
127-
, fwChunkIndex :: Int
128-
, fwSize :: Int64
129-
, fwAcc :: L.ByteString
130-
, fwMd5Context :: MD5Context
131-
, fwMd5acc :: L.ByteString
124+
{ _fwChunkSize :: Int64
125+
, _fwBucket :: Bucket
126+
, _fwFilesId :: ObjectId
127+
, _fwChunkIndex :: Int
128+
, _fwSize :: Int64
129+
, _fwAcc :: L.ByteString
130+
, _fwMd5Context :: MD5Context
131+
, _fwMd5acc :: L.ByteString
132132
}
133133

134134
-- Finalize file, calculating md5 digest, saving the last chunk, and creating the file in the bucket

0 commit comments

Comments
 (0)