phoityne-vscode 0.0.27.0 → 0.0.28.0
raw patch · 6 files changed
+113/−100 lines, 6 files
Files
- Changelog.md +4/−0
- README.md +9/−1
- app/Phoityne/VSCode/Core.hs +2/−2
- app/Phoityne/VSCode/TH/VariablePresentationHintJSON.hs +58/−58
- app/Phoityne/VSCode/Type.hs +33/−33
- phoityne-vscode.cabal +7/−6
Changelog.md view
@@ -1,4 +1,8 @@ +20190203 phoityne-vscode-0.0.28.0+ * [FIX] [Fixed typo in update message.](https://github.com/phoityne/haskell-debug-adapter/pull/2) ([@hnefatl](https://github.com/hnefatl))++ 20181014 phoityne-vscode-0.0.27.0 * [UPDATE] supported haskell-dap-0.0.9.0 * [MODIFY] send dap output to vscode with DEBUG level.
README.md view
@@ -141,7 +141,7 @@ ### changing log level -For debuging phoityen itself, change the log level to DEBUG. +For debugging phoityne itself, change the log level to DEBUG. Adding Issue with the debug log. % diff .vscode/launch.json.old .vscode/launch.json@@ -160,4 +160,12 @@ |stack clean & build|required|stack clean && stack build|task definition for F7 shortcut key.| |stack test|required|stack test|task definition for F8 shortcut key.| |stack watch|required|stack build --test --no-run-tests --file-watch|task definition for F6 shortcut key.|++++# Thanks++Thank you for your contribution for this project.+* [@hnefatl](https://github.com/hnefatl)+
app/Phoityne/VSCode/Core.hs view
@@ -274,7 +274,7 @@ -- -- _ERR_MSG_URL :: [String]-_ERR_MSG_URL = [ "`stack update` and install new phoityen-vscode."+_ERR_MSG_URL = [ "`stack update` and install new phoityne-vscode." , "Or check information on https://marketplace.visualstudio.com/items?itemName=phoityne.phoityne-vscode" ] @@ -299,7 +299,7 @@ _NEW_VERSION_MSG = [ "" , " New hackage module has been released."- , " `stack update` and `stack install phoityen-vscode`."+ , " `stack update` and `stack install phoityne-vscode`." , " " , " " ]
app/Phoityne/VSCode/TH/VariablePresentationHintJSON.hs view
@@ -1,58 +1,58 @@-{-# LANGUAGE TemplateHaskell #-} - - -module Phoityne.VSCode.TH.VariablePresentationHintJSON where - -import Data.Aeson.TH - -import Phoityne.VSCode.Utility - --- | --- Optional properties of a variable that can be used to determine how to render the variable in the UI. --- -data VariablePresentationHint = - VariablePresentationHint { - {- - The kind of variable. Before introducing additional values, try to use the listed values. - Values: - 'property': Indicates that the object is a property. - 'method': Indicates that the object is a method. - 'class': Indicates that the object is a class. - 'data': Indicates that the object is data. - 'event': Indicates that the object is an event. - 'baseClass': Indicates that the object is a base class. - 'innerClass': Indicates that the object is an inner class. - 'interface': Indicates that the object is an interface. - 'mostDerivedClass': Indicates that the object is the most derived class. - 'virtual': Indicates that the object is virtual, that means it is a synthetic object introduced by the adapter for rendering purposes, e.g. an index range for large arrays. - etc. - -} - kindVariablePresentationHint :: String - {- - Set of attributes represented as an array of strings. Before introducing additional values, try to use the listed values. - Values: - 'static': Indicates that the object is static. - 'constant': Indicates that the object is a constant. - 'readOnly': Indicates that the object is read only. - 'rawString': Indicates that the object is a raw string. - 'hasObjectId': Indicates that the object can have an Object ID created for it. - 'canHaveObjectId': Indicates that the object has an Object ID associated with it. - 'hasSideEffects': Indicates that the evaluation had side effects. - etc. - -} - , attributesVariablePresentationHint :: [String] - {- - Visibility of variable. Before introducing additional values, try to use the listed values. - Values: 'public', 'private', 'protected', 'internal', 'final', etc. - -} - , visibilityVariablePresentationHint :: String - } deriving (Show, Read, Eq) - - -$(deriveJSON defaultOptions { fieldLabelModifier = rdrop (length "VariablePresentationHint") } ''VariablePresentationHint) - --- | --- -defaultVariablePresentationHint :: VariablePresentationHint -defaultVariablePresentationHint = VariablePresentationHint "data" [] "public" - +{-# LANGUAGE TemplateHaskell #-}+++module Phoityne.VSCode.TH.VariablePresentationHintJSON where++import Data.Aeson.TH++import Phoityne.VSCode.Utility++-- |+-- Optional properties of a variable that can be used to determine how to render the variable in the UI.+--+data VariablePresentationHint =+ VariablePresentationHint {+ {-+ The kind of variable. Before introducing additional values, try to use the listed values.+ Values: + 'property': Indicates that the object is a property.+ 'method': Indicates that the object is a method.+ 'class': Indicates that the object is a class.+ 'data': Indicates that the object is data.+ 'event': Indicates that the object is an event.+ 'baseClass': Indicates that the object is a base class.+ 'innerClass': Indicates that the object is an inner class.+ 'interface': Indicates that the object is an interface.+ 'mostDerivedClass': Indicates that the object is the most derived class.+ 'virtual': Indicates that the object is virtual, that means it is a synthetic object introduced by the adapter for rendering purposes, e.g. an index range for large arrays.+ etc.+ -}+ kindVariablePresentationHint :: String+ {-+ Set of attributes represented as an array of strings. Before introducing additional values, try to use the listed values.+ Values: + 'static': Indicates that the object is static.+ 'constant': Indicates that the object is a constant.+ 'readOnly': Indicates that the object is read only.+ 'rawString': Indicates that the object is a raw string.+ 'hasObjectId': Indicates that the object can have an Object ID created for it.+ 'canHaveObjectId': Indicates that the object has an Object ID associated with it.+ 'hasSideEffects': Indicates that the evaluation had side effects.+ etc.+ -}+ , attributesVariablePresentationHint :: [String]+ {-+ Visibility of variable. Before introducing additional values, try to use the listed values.+ Values: 'public', 'private', 'protected', 'internal', 'final', etc.+ -}+ , visibilityVariablePresentationHint :: String+ } deriving (Show, Read, Eq)+++$(deriveJSON defaultOptions { fieldLabelModifier = rdrop (length "VariablePresentationHint") } ''VariablePresentationHint)++-- |+--+defaultVariablePresentationHint :: VariablePresentationHint+defaultVariablePresentationHint = VariablePresentationHint "data" [] "public"+
app/Phoityne/VSCode/Type.hs view
@@ -1,33 +1,33 @@-{-# LANGUAGE DeriveDataTypeable #-} -{-# LANGUAGE OverloadedStrings #-} -{-# LANGUAGE TemplateHaskell #-} -{-# LANGUAGE FlexibleContexts #-} -{-# LANGUAGE TypeOperators #-} -{-# LANGUAGE DataKinds #-} -{-# LANGUAGE Rank2Types #-} - -module Phoityne.VSCode.Type where - -import Data.Data -import Control.Lens -import qualified Control.Exception.Safe as E - --------------------------------------------------------------------------------- --- | Command Line Argument Data Type - --- | --- Help Exception --- -data HelpExitException = HelpExitException - deriving (Show, Typeable) - -instance E.Exception HelpExitException - --- | --- -data ArgData = ArgData { - _hackageVersionArgData :: String -} deriving (Data, Typeable, Show, Read, Eq) - -makeLenses ''ArgData - +{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE TemplateHaskell #-}+{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE TypeOperators #-}+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE Rank2Types #-}++module Phoityne.VSCode.Type where++import Data.Data+import Control.Lens+import qualified Control.Exception.Safe as E++--------------------------------------------------------------------------------+-- | Command Line Argument Data Type++-- |+-- Help Exception+--+data HelpExitException = HelpExitException+ deriving (Show, Typeable)++instance E.Exception HelpExitException++-- |+--+data ArgData = ArgData {+ _hackageVersionArgData :: String+} deriving (Data, Typeable, Show, Read, Eq)++makeLenses ''ArgData+
phoityne-vscode.cabal view
@@ -1,11 +1,13 @@--- This file has been generated from package.yaml by hpack version 0.28.2. +cabal-version: 1.12++-- This file has been generated from package.yaml by hpack version 0.31.1. -- -- see: https://github.com/sol/hpack ----- hash: 2e3d81bba7298c6b250fac3885e94bd14ecd597e7e17391774f5411f2375b1fc+-- hash: 01ceff3d414e57dec988aba626e06451dd9f6f4c51e3a8bad1930c99ce5a36f2 name: phoityne-vscode-version: 0.0.27.0+version: 0.0.28.0 synopsis: Haskell Debug Adapter for Visual Studio Code. description: Please see README.md category: Development@@ -13,14 +15,13 @@ bug-reports: https://github.com/phoityne/phoityne-vscode/issues author: phoityne_hs maintainer: phoityne.hs@gmail.com-copyright: 2016-2018 phoityne_hs+copyright: 2016-2019 phoityne_hs license: BSD3 license-file: LICENSE build-type: Simple-cabal-version: >= 1.10 extra-source-files:- Changelog.md README.md+ Changelog.md executable phoityne-vscode main-is: Main.hs