Skip to content

Commit 5525915

Browse files
mmhathasufell
authored andcommitted
Added parentheses to avoid parse errors
1 parent a3d23d8 commit 5525915

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

System/Posix/Directory/Common.hsc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,39 +101,39 @@ newtype DirType = DirType CChar
101101

102102
-- | The 'DirType' refers to an entry of unknown type.
103103
pattern UnknownType :: DirType
104-
pattern UnknownType = DirType CONST_DT_UNKNOWN
104+
pattern UnknownType = DirType (CONST_DT_UNKNOWN)
105105

106106
-- | The 'DirType' refers to an entry that is a named pipe.
107107
pattern NamedPipeType :: DirType
108-
pattern NamedPipeType = DirType CONST_DT_FIFO
108+
pattern NamedPipeType = DirType (CONST_DT_FIFO)
109109

110110
-- | The 'DirType' refers to an entry that is a character device.
111111
pattern CharacterDeviceType :: DirType
112-
pattern CharacterDeviceType = DirType CONST_DT_CHR
112+
pattern CharacterDeviceType = DirType (CONST_DT_CHR)
113113

114114
-- | The 'DirType' refers to an entry that is a directory.
115115
pattern DirectoryType :: DirType
116-
pattern DirectoryType = DirType CONST_DT_DIR
116+
pattern DirectoryType = DirType (CONST_DT_DIR)
117117

118118
-- | The 'DirType' refers to an entry that is a block device.
119119
pattern BlockDeviceType :: DirType
120-
pattern BlockDeviceType = DirType CONST_DT_BLK
120+
pattern BlockDeviceType = DirType (CONST_DT_BLK)
121121

122122
-- | The 'DirType' refers to an entry that is a regular file.
123123
pattern RegularFileType :: DirType
124-
pattern RegularFileType = DirType CONST_DT_REG
124+
pattern RegularFileType = DirType (CONST_DT_REG)
125125

126126
-- | The 'DirType' refers to an entry that is a symbolic link.
127127
pattern SymbolicLinkType :: DirType
128-
pattern SymbolicLinkType = DirType CONST_DT_LNK
128+
pattern SymbolicLinkType = DirType (CONST_DT_LNK)
129129

130130
-- | The 'DirType' refers to an entry that is a socket.
131131
pattern SocketType :: DirType
132-
pattern SocketType = DirType CONST_DT_SOCK
132+
pattern SocketType = DirType (CONST_DT_SOCK)
133133

134134
-- | The 'DirType' refers to an entry that is a whiteout.
135135
pattern WhiteoutType :: DirType
136-
pattern WhiteoutType = DirType CONST_DT_WHT
136+
pattern WhiteoutType = DirType (CONST_DT_WHT)
137137

138138
-- | Checks if this 'DirType' refers to an entry of unknown type.
139139
isUnknownType :: DirType -> Bool

0 commit comments

Comments
 (0)