mirror of
https://github.com/github/semantic.git
synced 2024-12-28 09:21:35 +03:00
Placate hlint.
This commit is contained in:
parent
19d4ebefa4
commit
f9ea94b8da
@ -66,7 +66,7 @@ lookupOrAlloc :: ( Member (Allocator address value) effects
|
||||
)
|
||||
=> Name
|
||||
-> Evaluator address value effects address
|
||||
lookupOrAlloc name = lookupEnv name >>= maybe (alloc name) pure
|
||||
lookupOrAlloc name = lookupEnv name >>= maybeM (alloc name)
|
||||
|
||||
|
||||
letrec :: ( Member (Allocator address value) effects
|
||||
|
@ -81,7 +81,7 @@ resolvePythonModules q = do
|
||||
, path <.> ".py"
|
||||
]
|
||||
modulePath <- resolve searchPaths
|
||||
maybe (throwResumable $ NotFoundError path searchPaths Language.Python) pure modulePath
|
||||
maybeM (throwResumable $ NotFoundError path searchPaths Language.Python) modulePath
|
||||
|
||||
|
||||
-- | Import declarations (symbols are added directly to the calling environment).
|
||||
|
@ -26,7 +26,7 @@ resolveRubyName name = do
|
||||
let name' = cleanNameOrPath name
|
||||
let paths = [name' <.> "rb"]
|
||||
modulePath <- resolve paths
|
||||
maybe (throwResumable $ NotFoundError name' paths Language.Ruby) pure modulePath
|
||||
maybeM (throwResumable $ NotFoundError name' paths Language.Ruby) modulePath
|
||||
|
||||
-- load "/root/src/file.rb"
|
||||
resolveRubyPath :: ( Member (Modules address value) effects
|
||||
@ -37,7 +37,7 @@ resolveRubyPath :: ( Member (Modules address value) effects
|
||||
resolveRubyPath path = do
|
||||
let name' = cleanNameOrPath path
|
||||
modulePath <- resolve [name']
|
||||
maybe (throwResumable $ NotFoundError name' [name'] Language.Ruby) pure modulePath
|
||||
maybeM (throwResumable $ NotFoundError name' [name'] Language.Ruby) modulePath
|
||||
|
||||
cleanNameOrPath :: ByteString -> String
|
||||
cleanNameOrPath = BC.unpack . dropRelativePrefix . stripQuotes
|
||||
|
Loading…
Reference in New Issue
Block a user