mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-14 02:27:30 -07:00
Add a newSystemInterface to go with the rest of the new* constructors
This commit is contained in:
parent
d18b2553cf
commit
90d3172dfe
2 changed files with 13 additions and 4 deletions
|
@ -396,7 +396,7 @@ ioInterface options files = do
|
|||
inputs <- mapM normalize files
|
||||
cache <- newIORef emptyCache
|
||||
configCache <- newIORef ("", Nothing)
|
||||
return SystemInterface {
|
||||
return (newSystemInterface :: SystemInterface IO) {
|
||||
siReadFile = get cache inputs,
|
||||
siFindSource = findSourceFile inputs (sourcePaths options),
|
||||
siGetConfig = getConfig configCache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue