definition: |
linkTarget :: String -> IO String linkTarget link = do (rc, out, _) <- evalCmd "readlink" ["-n", link] "" return $ if rc == 0 then replaceFileName link out else "" |
demand: |
no demanded arguments |
deterministic: |
deterministic operation |
documentation: |
--- Gets the target of a symlink. |
failfree: |
<FAILING> |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_) |-> _} |
name: |
linkTarget |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
String -> Prelude.IO String |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
possibly non-reducible on same data term |