Favorite Tags
View questions based on your favorite tags across the Stack Exchange network

1 answer

http download to disk with fsharp.data.dll and async workflows stalls

The following .fsx file is supposed to download and save to disk binary table base files which are posted as links in a html page on the internet, using Fsharp.Data.dll. What happens, is that the ...

1 answers | 21 mins ago by BitTickler on Stack Overflow stackoverflow.com
2 answers

Generating a file reference from a substring F#

I'm having trouble generating a file reference in F# from a substring. I have an input file and I want to create a uniquely identifiable output file from a truncation of the input file name. My code ...

2 answers | 1 hour ago by Simon Hayward on Stack Overflow stackoverflow.com
1 answer

How to pass discriminated union to function

I have the discriminated union: type Attribute = | AttrA of o : AttrA | AttrB of o : AttrB // ... | None And I have the big piece of code which I want to refactore: // get ...

1 answers | 1 hour ago by demas on Stack Overflow stackoverflow.com
2 answers

Comparing String Structure

I'm working on a project in F# in which I am hoping to come up with a way to identify whether or not two strings have the same structure. I know that there are algorithms out there (like Levenshtein ...

2 answers | 1 hour ago by Avery B on Stack Overflow stackoverflow.com
1 answer

Annotate the parameter of function

I want to create a function foo which get the function f and string s. The function apply the function f to s and return the length of array: let foo (f : (`a -> `b[])) (s : string) = ...

1 answers | 2 hours ago by demas on Stack Overflow stackoverflow.com
0 answers

Creating a Functional Parser in F# using Visual Studio 2013 with FsLex and FsYacc

I have been struggling for a while simply getting a parser to compile and work in F# Visual Studio 2013. I've read a lot of other posts already that seemed helpful, both on stack overflow and this ...

1 answer

ReSharper error when executing SonarQube analysis from TFS 2013 build

I have been setting up SonarQube analysis from a TFS 2013 build using the instructions made by Microsoft ALM Rangers: https://vsarguidance.codeplex.com/downloads/get/1452516 It all Works fine, until ...

1 answer

F# - Expected to be option but has a type

I was trying to build a binary tree in F# but when I tried to test my code, I met the problem above. Here is my code: type TreeNode<'a> = { Key: int; Val: 'a } type Tree<'a> = { LT: ...

1 answers | 4 hours ago by Alex Luk on Stack Overflow stackoverflow.com
2 answers

How do I get a window context so I can create NavigationOptions in a resharper plugin

I have a navigation plugin which I want to extend to allow support for context navigation. I've got everything I need except for the NavigationOptions instance. In my INavigateFromHereProvider I get ...

1 answer

C# lambda syntax in F#

Is it possible to define an => operator in F# so that it behaves like C#'s lambda syntax? This would allow one to write x => x instead of fun x -> x I'm an F# beginner, and my instinct ...

12 answers

How to resolve incorrect “Ambiguous reference” from Resharper on class inheritance?

In my project I have a class that is inherited by many other classes. We'll call it ClassBase. public class ClassInheritFromBase : ClassBase When ClassBase is being inherited, Resharper throws an ...

12 answers | 20 hours ago by Carlton Jenke on Stack Overflow stackoverflow.com
1 answer

Modeling constrained tree data structures in F#

As a beginning F# programmer, I've read articles like this one that describe how to model simple tree data structures in F#. I'd like to model more complex tree data structures. Consider a tree that ...

1 answers | 21 hours ago by bright on Stack Overflow stackoverflow.com
1 answer

ObjectDisposedException error in Release, but not in Debug

I am writing an F# app and want to log certain information during its execution. To do so, I set the Console output to a .txt file. I do so as follows: type VMwareInterface(serviceUrl:string, ...

1 answers | 21 hours ago by Choub890 on Stack Overflow stackoverflow.com
1 answer

Can ReSharper run unit tests automatically

Is it possible to automatically run unit tests while you work without compiling or running them manually? I am aware that NDepend allows you to do so, but I would prefer to use the ReSharper suite.

1 answer

Delay the implementation of interface methods?

I've been programming in F# for some years and there's an "issue" that's been bothering me for some time and I have not been able to solve. It is not a bug, I think it is a design decision, but ...

5 answers

Resharper uninstall - Visual Studio no longer shows correct error highlighting

I've been trying out resharper and decided that I'd like to uninstall. However, after doing so, Visual Studio no longer shows red underline highlighting that it normally uses to identify the location ...

3 answers

F# map a seq to another seq of shorter length

I have a sequence of strings like this (lines in a file) [20150101] error a details 1 details 2 [20150101] error b details [20150101] error c I am trying to map this to a sequence of strings like ...

3 answers | yesterday by Ande on Stack Overflow stackoverflow.com
1 answer

How to create a single quotation expression from a collection of expressions?

I have a collection of (sub) quotation expressions that are all created in a prior step in a program. I now want to be able to control the creation of one single large quotation expression that ...

1 answers | yesterday by Sam on Stack Overflow stackoverflow.com
2 answers

F# Option equivalent of C#'s ?? operator

I am looking for a way to get the value of an F# option or use a default value if it is None. This seems so common I can't believe something predefined doesn't exist. Here is how I do it right now: ...

2 answers | 2 days ago by Nikon the Third on Stack Overflow stackoverflow.com
3 answers

How to set team-wide ReSharper and code formatting settings?

We would like to have common team-wide editor settings in Visual Studio 2012. We use ReSharper. Is there any way for all team members to have Visual Studio editor settings that they can import from a ...

3 answers

How to share the same Resharper settings between multiple solutions, with no manual intervention?

Our projects are organized in a master solution (containing every project) and multiple smaller solutions containing groupings of related projects. I would like to share the same Resharper settings ...

0 answers

F# error FS0597 possibly caused by incorrect indentation

I have the following piece of code: if File.Exists(settingsFilePath) = false then System.Console.WriteLine("Are you running BlogDotNet for the first time? (yes/no):"); match ...

1 answer

Why must a struct value be mutable to set an indexed property?

Consider the following program: [<Struct>] type Grid2D<'T> = val RowLength : int val Data : 'T[] new(rowLength, data) = { RowLength = rowLength; Data = data } member ...

1 answers | Jul 4 at 8:55 by Asik on Stack Overflow stackoverflow.com
1 answer

How to Re-enable F12 to Go To Definition After Installing Resharper in Visual Studio 2012

In visual studio 2012, also should work with other versions: Tools > Options > Environment > Keyboard In the box "Show commands containing:", type "Edit.GoToDefinition", then in the box "Press ...

1 answer

SqlEntityConnection can't find edmgen.exe when compiling on mac osx with mono

I have a very simple code that uses the SqlEntityConnection type provider. basically something like this open System.Data.Linq open System.Data.Entity open Microsoft.FSharp.Data.TypeProviders type ...

1 answer

Refactor Solution Folder to New Solution

I've got a a fairly large project with many code files in Visual Studio 2015. This folder contains lots of structures and classes that have no ties to the solution they're in, but need to be moved to ...

1 answer

Does the average Russian drink 250mL of vodka a day?

I've seen this claim a few times around the internet: The reality is that the average Russian consumes about a pint of vodka a day; or, one-half of a half liter. Source: Russian Life, 2007 The ...

1 answers | Jul 3 at 22:59 by Oxinabox on Skeptics skeptics.stackexchange.com
0 answers

Resharper vs Visual Assist non overlappinf features for C++

What are the features that Resharper C++ currently have that Visual Assist doesn't and viceversa? Resharper specific Ability to resolve headers at solution level and detect unused headers Suggest ...

1 answer

Editing Resharper's INotifyPropertyChanged

When I have a class that I declare implements then INotifyPropertyChanged interface, ReSharper will automatically generate this implementation: public event PropertyChangedEventHandler ...

1 answer

Get parent class name in Resharper LiveTemplate

I want to add a live template that creates a nested CommandImplementation class. The template itself looks like this: public ICommand $COMMAND$ { get { return new $COMMAND$Impl(self: ...

1 answers | Jul 3 at 15:04 by Onur on Stack Overflow stackoverflow.com
15 30 50 per page
1 2 3