Skip to content

Commit

Permalink
Ban a bunch of unsafe or dodgy functions (digital-asset#1534)
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-da authored and hurryabit committed Jun 5, 2019
1 parent b72f560 commit a33e6b8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .hlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,12 @@
# - {name: [Data.Set, Data.HashSet], as: Set} # if you import Data.Set qualified, it must be as 'Set'
# - {name: Control.Arrow, within: []} # Certain modules are banned entirely
#
# - functions:
# - {name: unsafePerformIO, within: []} # unsafePerformIO can only appear in no modules

- functions:
- {name: unsafePerformIO, within: [DA.Daml.GHC.Compiler.UtilGHC]}
- {name: unsafeInterleaveIO, within: []}
- {name: unsafeDupablePerformIO, within: []}
- {name: setCurrentDirectory, within: [DAML.Assistant.Tests]}
- {name: unsafeCoerce, within: []}

# Add custom hints for this project
#
Expand Down

0 comments on commit a33e6b8

Please sign in to comment.