Skip to content

Commit 7eb593f

Browse files
committed
Add ghc-api-version.h from ghcide
1 parent b8627c2 commit 7eb593f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Diff for: haskell-language-server.cabal

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ build-type: Simple
1515
extra-source-files:
1616
README.md
1717
ChangeLog.md
18+
include/ghc-api-version.h
1819

1920
flag agpl
2021
Description: Enable AGPL dependencies
@@ -93,6 +94,8 @@ library
9394
, time
9495
, transformers
9596
, unordered-containers
97+
include-dirs:
98+
include
9699
if os(windows)
97100
build-depends: Win32
98101
else

Diff for: include/ghc-api-version.h

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#ifndef GHC_API_VERSION_H
2+
#define GHC_API_VERSION_H
3+
4+
#ifdef GHC_LIB
5+
#define MIN_GHC_API_VERSION(x,y,z) MIN_VERSION_ghc_lib(x,y,z)
6+
#else
7+
#define MIN_GHC_API_VERSION(x,y,z) MIN_VERSION_ghc(x,y,z)
8+
#endif
9+
10+
#endif

0 commit comments

Comments
 (0)