Skip to content

Commit

Permalink
Add ghc-api-version.h from ghcide
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeiborra committed Aug 1, 2020
1 parent de22fa9 commit d754eb2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions haskell-language-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ build-type: Simple
extra-source-files:
README.md
ChangeLog.md
include/ghc-api-version.h

flag agpl
Description: Enable AGPL dependencies
Expand Down Expand Up @@ -93,6 +94,8 @@ library
, time
, transformers
, unordered-containers
include-dirs:
include
if os(windows)
build-depends: Win32
else
Expand Down
10 changes: 10 additions & 0 deletions include/ghc-api-version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#ifndef GHC_API_VERSION_H
#define GHC_API_VERSION_H

#ifdef GHC_LIB
#define MIN_GHC_API_VERSION(x,y,z) MIN_VERSION_ghc_lib(x,y,z)
#else
#define MIN_GHC_API_VERSION(x,y,z) MIN_VERSION_ghc(x,y,z)
#endif

#endif

0 comments on commit d754eb2

Please sign in to comment.