Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
unix
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
unix
Commits
5525915c
Commit
5525915c
authored
2 years ago
by
Mann mit Hut
Committed by
Julian Ospald
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Added parentheses to avoid parse errors
parent
a3d23d8d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
System/Posix/Directory/Common.hsc
+9
-9
9 additions, 9 deletions
System/Posix/Directory/Common.hsc
with
9 additions
and
9 deletions
System/Posix/Directory/Common.hsc
+
9
−
9
View file @
5525915c
...
...
@@ -101,39 +101,39 @@ newtype DirType = DirType CChar
-- | The 'DirType' refers to an entry of unknown type.
pattern UnknownType :: DirType
pattern UnknownType = DirType CONST_DT_UNKNOWN
pattern UnknownType = DirType
(
CONST_DT_UNKNOWN
)
-- | The 'DirType' refers to an entry that is a named pipe.
pattern NamedPipeType :: DirType
pattern NamedPipeType = DirType CONST_DT_FIFO
pattern NamedPipeType = DirType
(
CONST_DT_FIFO
)
-- | The 'DirType' refers to an entry that is a character device.
pattern CharacterDeviceType :: DirType
pattern CharacterDeviceType = DirType CONST_DT_CHR
pattern CharacterDeviceType = DirType
(
CONST_DT_CHR
)
-- | The 'DirType' refers to an entry that is a directory.
pattern DirectoryType :: DirType
pattern DirectoryType = DirType CONST_DT_DIR
pattern DirectoryType = DirType
(
CONST_DT_DIR
)
-- | The 'DirType' refers to an entry that is a block device.
pattern BlockDeviceType :: DirType
pattern BlockDeviceType = DirType CONST_DT_BLK
pattern BlockDeviceType = DirType
(
CONST_DT_BLK
)
-- | The 'DirType' refers to an entry that is a regular file.
pattern RegularFileType :: DirType
pattern RegularFileType = DirType CONST_DT_REG
pattern RegularFileType = DirType
(
CONST_DT_REG
)
-- | The 'DirType' refers to an entry that is a symbolic link.
pattern SymbolicLinkType :: DirType
pattern SymbolicLinkType = DirType CONST_DT_LNK
pattern SymbolicLinkType = DirType
(
CONST_DT_LNK
)
-- | The 'DirType' refers to an entry that is a socket.
pattern SocketType :: DirType
pattern SocketType = DirType CONST_DT_SOCK
pattern SocketType = DirType
(
CONST_DT_SOCK
)
-- | The 'DirType' refers to an entry that is a whiteout.
pattern WhiteoutType :: DirType
pattern WhiteoutType = DirType CONST_DT_WHT
pattern WhiteoutType = DirType
(
CONST_DT_WHT
)
-- | Checks if this 'DirType' refers to an entry of unknown type.
isUnknownType :: DirType -> Bool
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment