Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle absolute paths in dotfiles and derive Typeable/Data #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion HaLeX_lib/Language/HaLex/FaAsDiGraph.hs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ tographviz' :: (Eq sy, Show sy, Ord st, Show st)
-> Bool -- ^ Show sync states?
-> [Char]
tographviz' ndfa@(Ndfa v q s z delta) name shape orientation
showState showLabel deadSt syncSt = "digraph " ++ name ++ " {\n "
showState showLabel deadSt syncSt = "digraph \"" ++ name ++ "\" {\n "
++ "rankdir = " ++ orientation ++ " ;\n "
++ (showElemsListPerLine (showStates q)) ++ "\n "
++ (showElemsListPerLine (showInitialStates s)) ++ "\n "
Expand Down
9 changes: 8 additions & 1 deletion HaLeX_lib/Language/HaLex/RegExp.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}

-----------------------------------------------------------------------------
-- |
-- Module : Language.HaLex.RegExp
Expand Down Expand Up @@ -32,6 +35,10 @@ module Language.HaLex.RegExp (
, extREtoRE
) where

import Data.Data (Data)
import Data.Typeable (Typeable)


-----------------------------------------------------------------------------
-- * Data type with recursion pattern

Expand All @@ -45,7 +52,7 @@ data RegExp sy = Empty -- ^ Empty Language
| OneOrMore (RegExp sy) -- ^ One or more times (extended RegExp)
| Optional (RegExp sy) -- ^ Optional (extended RegExp)
| RESet [sy] -- ^ Set (extended RegExp)
deriving (Read, Eq)
deriving (Read, Eq, Data, Typeable)

-- | Catamorphism induced by the 'RegExp' inductive data type

Expand Down