diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2018-10-21 16:27:22 +0200 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2018-10-27 20:48:56 +0200 |
commit | e91d57a4655d69b306190506c488450f42391fb3 (patch) | |
tree | 85cccb972f8786b0c7658c55c39ae6b5c611c879 /src/CabalHelper/Runtime/Main.hs | |
parent | e7ee5a69970a6641ea650557611a8fb502d85dc5 (diff) |
Add package-id unit-query
Diffstat (limited to 'src/CabalHelper/Runtime/Main.hs')
-rw-r--r-- | src/CabalHelper/Runtime/Main.hs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/CabalHelper/Runtime/Main.hs b/src/CabalHelper/Runtime/Main.hs index 3a363a3..d0eea1a 100644 --- a/src/CabalHelper/Runtime/Main.hs +++ b/src/CabalHelper/Runtime/Main.hs @@ -306,6 +306,11 @@ main = do print =<< flip mapM cmds $$ \x -> do case x of + "package-id":[] -> + return $ Just $ ChResponseVersion $ (,) + (display (packageName gpd)) + (toDataVersion (packageVersion gpd)) + "flags":[] -> do return $ Just $ ChResponseFlags $ sort $ map (flagName' &&& flagDefault) $ genPackageFlags gpd @@ -344,7 +349,7 @@ main = do "compiler-version":[] -> do let CompilerId comp ver = compilerId $ compiler lbi - return $ Just $ ChResponseVersion (show comp) (toDataVersion ver) + return $ Just $ ChResponseVersion $ (,) (show comp) (toDataVersion ver) "package-db-stack":[] -> do let |