aboutsummaryrefslogtreecommitdiff
path: root/html-test/src
diff options
context:
space:
mode:
authorAlex Biehl <alexbiehl@gmail.com>2017-07-03 19:43:04 +0200
committerGitHub <noreply@github.com>2017-07-03 19:43:04 +0200
commita330da5297106ff214cbb5e74965d9d1ef9dab7b (patch)
tree91a27b0a2de35d4082a7c9c2fc23e950bed05c82 /html-test/src
parent901b327f46dc4bd70cd310ae2c6339aa9ce572bb (diff)
Document record fields when DuplicateRecordFields is enabled (#649)
Diffstat (limited to 'html-test/src')
-rw-r--r--html-test/src/DuplicateRecordFields.hs25
1 files changed, 25 insertions, 0 deletions
diff --git a/html-test/src/DuplicateRecordFields.hs b/html-test/src/DuplicateRecordFields.hs
new file mode 100644
index 00000000..2cf9ff43
--- /dev/null
+++ b/html-test/src/DuplicateRecordFields.hs
@@ -0,0 +1,25 @@
+{-# LANGUAGE DuplicateRecordFields #-}
+module DuplicateRecordFields (RawReplay(..)) where
+
+import Prelude hiding (Int)
+
+data Int = Int
+
+data RawReplay = RawReplay
+ { headerSize :: Int
+ -- ^ The byte size of the first section.
+ , headerCRC :: Int
+ -- ^ The CRC of the first section.
+ , header :: Int
+ -- ^ The first section.
+ , contentSize :: Int
+ -- ^ The byte size of the second section.
+ , contentCRC :: Int
+ -- ^ The CRC of the second section.
+ , content :: Int
+ -- ^ The second section.
+ , footer :: Int
+ -- ^ Arbitrary data after the second section. In replays generated by
+ -- Rocket League, this is always empty. However it is not technically
+ -- invalid to put something here.
+ } \ No newline at end of file