返信ありがとうございます!
仰る通りに試してみたところ以下のようなログが出てきました。
見たところhie.yamlというファイルが無いのが問題なのでしょうか?
No 'hie.yaml' found. Try to discover the project type!
Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper) Version 1.5.1.0, Git revision 745ef26f406dbdd5e4a538585f8519af9f1ccb09 (dirty) x86_64 ghc-8.10.7
Current directory: /home/tiger/haskell_sample/hssample
Operating system: linux
Arguments: []
Cradle directory: /home/tiger/haskell_sample/hssample
Cradle type: Default
Tool versions found on the $PATH
cabal: 3.6.2.0
stack: 2.7.3
ghc: 8.10.7
Consulting the cradle to get project GHC version...
Project GHC version: 8.10.7
haskell-language-server exe candidates: ["haskell-language-server-8.10.7","haskell-language-server"]
Launching haskell-language-server exe at:/home/tiger/.ghcup/bin/haskell-language-server-8.10.7
haskell-language-server version: 1.5.1.0 (GHC: 8.10.7) (PATH: /home/tiger/.ghcup/bin/haskell-language-server-8.10.7~1.5.1) (GIT hash: 745ef26f406dbdd5e4a538585f8519af9f1ccb09)
ghcide setup tester in /home/tiger/haskell_sample/hssample.
Report bugs at
Step 1/4: Finding files to test in /home/tiger/haskell_sample/hssample
Found 1 files
Step 2/4: Looking for hie.yaml files that control setup
Found 1 cradle
()
Step 3/4: Initializing the IDE
Step 4/4: Type checking the files
2021-12-06 23:13:06.649471714 [ThreadId 25] INFO hls: Consulting the cradle for "a.hs"
2021-12-06 23:13:06.649603345 [ThreadId 25] WARNING hls: No [cradle]() found for a.hs.
Proceeding with [implicit cradle]().
You should ignore this message, unless you see a 'Multi Cradle: No prefixes matched' error.
2021-12-06 23:13:06.731264455 [ThreadId 25] INFO hls: Using interface files cache dir: /home/tiger/.cache/ghcide/main-da39a3ee5e6b4b0d3255bfef95601890afd80709
2021-12-06 23:13:06.731391738 [ThreadId 25] INFO hls: Making new HscEnv[main]
2021-12-06 23:13:06.889421658 [ThreadId 46] INFO hls: File: /home/tiger/haskell_sample/hssample/a.hs
Hidden: no
Range: 1:14-1:15
Source: hlint
Severity: DsInfo
Message: Redundant $Found:print $ "hello"Why not:print "hello"
2021-12-06 23:13:06.896895315 [ThreadId 44] INFO hls: finish: User TypeCheck (took 0.16s)
2021-12-06 23:13:06.898135627 [ThreadId 91] INFO hls: finish: GetHie (took 0.00s)
2021-12-06 23:13:06.898290809 [ThreadId 95] INFO hls: finish: GenerateCore (took 0.00s)
Completed (1 file worked, 0 files failed)